The third reason why he prays for them is his coming physical absence; so he says, and now I am no more in the world. Note that one is said to be "in the world" in two senses. First, by clinging to the world by one's affections: "For all that is in the world is the lust of the flesh and the lust of the eyes and the pride of life" (1 Jn 2:16). This is not the sense in which Christ was no longer in the world, since he never clung to it with his affections. He is no longer in the world in another way, that is, by his physical presence, for while he had been in the world physically, he would soon ...physically leave it. But they, the disciples, are in the world, physically present. And I am coming to you, as regards my humanity, to share your glory and to be seated at your right hand. So it is fitting that I pray for those whom I will soon physically leave.
After Christ stated his reasons for praying for the apostles, he here makes his petitions: first, he asks for their protection; secondly, for their sanctification, sanctify them (v 17). They are to be protected from evil, and sanctified by good. In regard to the first he does two things: first, he asks for their protection; secondly, he mentions why they need protection (v 12).
In regard to the first, four things must be considered: whom he asks; what he asks for; for whom he asks; and why he asks. The one he asks is the Father; so he says, Father: and with good reason, for the Father is the source of every good: "Every good endowment and every perfect gift is from above, coming down from the Father of lights" (Jas 1:17). He adds, Holy, because the Father is also the source and origin of all holiness and because, in the last analysis, he was asking for the sanctification of the apostles: "You shall be holy; for I the Lord your God am holy" (Lev 19:2); "There is none holy like the Lord" (1 Sam 2:2).
He asks for their protection, saying, keep them, for as we read: "Unless the Lord builds the house, those who build it labor in vain" (Ps 127:1). For our good consists not only in receiving existence from God, but also in being kept in existence by God, because as Gregory says: "All things would return to nothingness, if the hand of the Almighty did not uphold them"; "upholding the universe by his word of power" (Heb 1:3). Accordingly, the Psalmist prays: "Keep me, O Lord, for I have put my trust in you" (Ps 16:1). Now we are kept from evil and from sin in the name of God; thus he says, keep them in your name, that means, by the power of your name and of your knowledge, for in these lay our glory and our well-being: "Some trust in chariots, and some in horses. But we will call upon the name of the Lord our God" (Ps 20:7).
He is praying for those who were given to him; he says, which you have given me: "Consider the work of God; who can make straight what he has made crooked?" (Eccl 7:13). For one can be kept from evil only by God's choice, which is indicated when he says, which you have given me, that is, by a gift of grace, so that they remain with me: "Not all men can receive this precept, but only those to whom it is given" (Mt 19:11). Those who are given to Christ in this way are kept from evil.
Then he states why he is asking for their protection, saying, that they may be one, even as we are one. This can be connected with what has gone before in two ways. In the first way, it shows the way they will be kept or protected. Then the meaning is: They will be kept and protected by being kept as one. For a thing is preserved in existence as long as it remains one, and it ceases to be when it becomes divided: "Every kingdom divided against itself is laid waste" (Mt 12:23). Accordingly, the Church and people can be preserved if they remain one. In another way this phrase can state the purpose of their being kept. Then the meaning is this: Let them be kept or protected so that they may be one: for our entire perfection lies in a unity of spirit: "eager to maintain the unity of the Spirit in the bond of peace" (Eph 4:3); "Behold, how good and pleasant it is when brothers dwell in unity" (Ps 133:1).
He adds, even as we are one. This causes a problem. The Father and Son are one in essence. And so we also will be one in essence? This is not true. The solution is that the perfection of each thing is nothing but sharing a likeness to God; for we are good to the extent that we resemble God. Accordingly, our unity contributes to our perfection to the extent that it shares in the unity of God. Now there is a twofold unity in God. There is a unity of nature: "I and the Father are one" (10:30); and a unity of love in the Father and Son, which is a unity of spirit. Both of these unities are found in us, not in an equal way, but with a certain likeness. The Father and the Son have the same individual nature, while we have the same specific nature. Again, they are one by a love which is not a participated love and a gift from another; rather, this love proceeds from them, for the Father and Son love themselves by the Holy Spirit. We are one by participating in a higher love.
Source: Commentary on John