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.
The evening meal was in progress, and the devil had already prompted Judas, the son of Simon Iscariot, to betray Jesus.
Jesus knew that the Father had put all things under his power, and that he had come from God and was returning to God;
so he got up from the meal, took off his outer clothing, and wrapped a towel around his waist.
After that, he poured water into a basin and began to wash his disciples’ feet, drying them with the towel that was wrapped around him.
He came to Simon Peter, who said to him, “Lord, are you going to wash my feet?”
Jesus replied, “You do not realize now what I am doing, but later you will understand.”
“No,” said Peter, “you shall never wash my feet.” Jesus answered, “Unless I wash you, you have no part with me.”
“Then, Lord,” Simon Peter replied, “not just my feet but my hands and my head as well!”
Jesus answered, “Those who have had a bath need only to wash their feet; their whole body is clean. And you are clean, though not every one of you.”
References for John 13:10
For he knew who was going to betray him, and that was why he said not every one was clean.
References for John 13:11