John 18:4

4 Jesus, knowing all that was going to happen to him, went out and asked them, “Who is it you want?”

Read John 18:4 Using Other Translations

Jesus therefore, knowing all things that should come upon him, went forth, and said unto them,Whom seek ye?
Then Jesus, knowing all that would happen to him, came forward and said to them, "Whom do you seek?"
Jesus fully realized all that was going to happen to him, so he stepped forward to meet them. “Who are you looking for?” he asked.

What does John 18:4 mean?

John Gill's Exposition of the Bible
John 18:4

Jesus therefore knowing all things
As being the omniscient God, so his knowledge reaches to all persons and things, without any limitation, and restriction; though here it has a regard to all the things,

that should come upon him;
even all the sufferings he should endure, which were all determined by God; agreed to by him, in the covenant of grace; predicted in the Old Testament, and foretold by himself: he knew all the circumstances that would attend his sufferings, as that he should be betrayed by Judas; be forsaken by the rest of his disciples; that the Jews would give him gall and vinegar in his thirst; and the soldiers part his garments among them: he knew the time of his sufferings; and that it was now at hand; and that Judas and his company were not far off: and therefore, went forth out of the garden, or at least from that part of it where he was, and his disciples with him: this was done to show his willingness to suffer; he

went forth
of his own accord; he did not hide himself in the garden, as the first Adam did: he did not stay till those that sought his life came up to him: he went forth, not to make his escape from them, but to meet them, and make himself known unto them;

and said unto them; whom seek ye?
this question was put, not out of ignorance; for he knew full well who they were seeking after: nor with a design to deceive them, and make his escape; but to show that he was not afraid of them, and that they could not have known him, nor have taken him, had he not made himself known; and offered himself to them; and which makes it appear, that he was willingly apprehended by them, and voluntarily suffered.

California - Do Not Sell My Personal Information  California - CCPA Notice