John 6:6

6 He asked this only to test him, for he already had in mind what he was going to do.

John 6:6 in Other Translations

KJV
6 And this he said to prove him: for he himself knew what he would do.
ESV
6 He said this to test him, for he himself knew what he would do.
NLT
6 He was testing Philip, for he already knew what he was going to do.
MSG
6 He said this to stretch Philip's faith. He already knew what he was going to do.
CSB
6 He asked this to test him, for He Himself knew what He was going to do.

John 6:6 Meaning and Commentary

John 6:6

And this he said to prove him
Or "tempting him", trying his faith, and not only his, but the rest of the disciples; not as ignorant of it himself, but in order to discover it to him and them, and to prepare them for the following miracle; and that it might appear the more illustrious and marvellous:

for he himself knew what he would do;
Christ had determined to work a miracle, and feed the large number of people that were with him, with that small provision they had among them; and being God omniscient, he knew that he was able to do it, and that he was determined to do it, and it would be done; but he was willing first to try the faith of his apostles.

John 6:6 In-Context

4 The Jewish Passover Festival was near.
5 When Jesus looked up and saw a great crowd coming toward him, he said to Philip, “Where shall we buy bread for these people to eat?”
6 He asked this only to test him, for he already had in mind what he was going to do.
7 Philip answered him, “It would take more than half a year’s wages to buy enough bread for each one to have a bite!”
8 Another of his disciples, Andrew, Simon Peter’s brother, spoke up,
Scripture quoted by permission.  Quotations designated (NIV) are from THE HOLY BIBLE: NEW INTERNATIONAL VERSION®.  NIV®.  Copyright © 1973, 1978, 1984, 2011 by Biblica.  All rights reserved worldwide.