When he says, The woman said to him, he mentions the one who gives the gift; and this corresponds to what our Lord said before, If you knew the gift of God, and realized who it is who says to you, Give me a drink, you perhaps would have asked him. First, we have the woman's profession. Secondly, the teaching of Christ (v 26). As to the first, he does two things. First, the woman professes her faith in the Christ to come. Secondly, in the fulness of his teaching, he will tell us everything.
The woman, wearied by the profound nature of what Christ was saying, was confused and unable to understa...nd all this. She says: I know that the Messiah is coming, the one called Christ. As if to say: I do not understand what you are saying, but a time will come when the Messiah will arrive, and then we will understand all these things. For "Messiah" in Hebrew means the same as "Anointed One" in Latin, and "Christ" in Greek. She knew that the Messiah was coming because she had been taught by the books of Moses, which foretell the coming of Christ: "The scepter will not be taken away from Judah... until he who is to be sent comes" (Gn 49:10). As Augustine says, this is the first time the woman mentions the name "Christ": and we see by this that she is now beginning to return to her lawful husband.
When this Messiah comes, he will give us a complete teaching. Hence she says, when he comes he will tell us everything. This was foretold by Moses: "I will raise up a prophet for them, from among their own brothers, like them; and I will put my words in his mouth, and he will tell them all I command him" (Dt 18:18). Because this woman had now called her husband, i.e., intellect and reason, the Lord now offers her the water of spiritual teaching by revealing himself to her in a most excellent way.
Source: Commentary on John