It was just before the Passover Festival. Jesus knew that the hour had come for him to leave this world and go to the Father. Having loved his own who were in the world, he loved them to the end.
[NOW] BEFORE the Passover Feast began, Jesus knew (was fully aware) that the time had come for Him to leave this world and return to the Father. And as He had loved those who were His own in the world, He loved them to the last and to the highest degree.
Now before the feast of the passover, when Jesus knew that his hour was come that he should depart out of this world unto the Father, having loved his own which were in the world, he loved them unto the end.
"I am not referring to all of you; I know those I have chosen. But this is to fulfill this passage of Scripture: 'He who shared my bread has lifted up his heel against me.'"
I am not speaking of and I do not mean all of you. I know whom I have chosen; but it is that the Scripture may be fulfilled, He who eats My bread with Me has raised up his heel against Me. [Ps. 41:9.]AMP
I speak not of you all: I know whom I have chosen: but that the scripture may be fulfilled, He that eateth bread with me hath lifted up his heel against me.
After he had said this, Jesus was troubled in spirit and testified, "Very truly I tell you, one of you is going to betray me."
After Jesus had said these things, He was troubled (disturbed, agitated) in spirit and said, I assure you, most solemnly I tell you, one of you will deliver Me up [one of you will be false to Me and betray Me]!
When Jesus had thus said, he was troubled in spirit, and testified, and said, Verily, verily, I say unto you, that one of you shall betray me.