Now he mentions how these things will be done: first, the way, whatever you ask; secondly, why they will be done, that the Father may be glorified.
As to the first, since our Lord said, "and greater works than these will he do," in order that the greatness of the worker might be known from the greatness of the works, some might suppose that one who believes in the Son of God would be greater than the Son. Our Lord excludes this by the way the works are done. For the Son does these works by his own authority, while one who believes in him does it by asking. So he says, Whatever you ask the Fat...her in my name, I will do it.
This eliminates the equality between believers and Christ in three ways. First, because as was said, believers do these works by asking: so he says, Whatever you ask. "Every one who asks receives" (Mt 7:8). Secondly, because believers work by reason of the Son; so he says, in my name, that is, by reason of my name: "There is no other name under heaven given among men by which we must be saved" (Acts 4:12). For this name is above every name: "Not to us, O Lord, not to us, but to thy name give glory" (Ps 115:1). Thirdly, because the Son himself does all these works in them and through them: thus he says, I will do it. Note that the Father is asked and the Son does the work, the reason being that the works of the Father and the Son are inseparable: "Whatever he does, that the Son does likewise" (5:19). For the Father does all things through the Son: "All things were made through him" (1:3).
How could he say, Whatever you ask I will do it, since we see that his faithful ask and do not receive? According to Augustine, we should consider here that he first says, in my name, and then adds, I will do it. The name of Christ is the name of salvation: "You shall call his name Jesus, for he will save his people from their sins" (Mt 1:21). Therefore, one who asks for something pertaining to salvation asks in the name of Christ. It does happen that someone asks for something which does not pertain to salvation. This happens for two reasons. First, because one has a corrupt affection: as when one asks for something to which he is attracted, but which if he did have, would be an obstacle to his salvation. One who asks this way is not heard because he asks wrongly: "You ask and do not receive, because you ask wrongly" (Jas 4:3). For when someone, because of his corrupt affection, would badly use what he wants to receive, he does not receive it because of our Lord's compassion. The reason being that our Lord does not just look at one's desire, but rather the helpfulness of what is desired. For the good Lord often denies what we ask in order to give us what we should prefer.
The second reason we may ask for something which does not pertain to our salvation is our ignorance. We sometimes ask for what we think is helpful, but really is not. But God takes care of us, and does not do what we ask. Thus Paul, who labored more than all others, asked our Lord three times to take away a thorn in his flesh, but he did not receive what he asked because it was not useful for him (2 Cor 12:8). "We do not know how to pray as we ought, but the Spirit himself intercedes for us with sighs too deep for words" (Rom 8:26). "You do not know what you are asking" (Mt 20:22). Thus it is clear that when we truly ask in his name, in the name of Jesus Christ, he will do it.
He says, I will do it, using the future tense, not the present tense, because he sometimes postpones doing what we ask so that our desire for it will increase and so that he can grant it at the right time: "Rain will fall on you when it should fall" (Lev 26:4); "In a day of salvation I have helped you" (Is 49:8). Again, it sometimes happens that we pray for people and are perhaps not heard, and this is because they put obstacles in the way. "Do not pray for this people... for I do not hear you" (Jer 7:16); "Though Moses and Samuel stood before me, yet my heart would not turn toward this people" (Jer 15:1).
Source: Commentary on John