2279 Now the Evangelist shows the promptness of Christ to willingly undergo betrayal: first, by voluntarily offering himself; secondly, by stopping one of the disciples who was resisting (v 10). In regard to the first, the Evangelist does two things: first, he tells how Christ identified himself to show his power; secondly, to show his patience (v 7). In regard to the first he does three things: first, he states the question Christ asked; secondly, he shows Christ identifying himself, I am he; thirdly, we see the effect this has (v 6).
2280 He does three things regarding the first. First, he ...recalls Christ's knowledge: Then Jesus, knowing all that was to befall him, came forward; "Jesus knew that his hour had come" (13:1). The Evangelist mentions this for two reasons: first, so that it does not appear that the question he is asking comes from his ignorance; and secondly, so that it does not seem that he is offering himself unintentionally and without knowing that they have come to kill him. He knew everything that would happen to him.
Secondly, he states Christ's question, for although he knew all these things he came forward and said to them, Whom do you seek? But this was not because of his ignorance, as we said. Thirdly, he gives their answer, Jesus of Nazareth. They were seeking him not to imitate him, but to slander and kill him: "You will seek me and die in your sin" (8:21).
Source: Commentary on John