Now the Evangelist treats of the request by which the gift is obtained, which is prayer. First there is the woman's inquiry about prayer. Secondly, Christ's answer (v 21). Concerning the first the woman does two things. First, she admits that Christ is qualified to answer her question. Secondly, she asks the question (v 20).
And so this woman, hearing what Christ had told her about things that were secret, admits that the one who up to now she believed was a mere man, is a prophet, and capable of settling her doubts. For it is characteristic of prophets to reveal what is not present, and hidd...en: "He who is now called a prophet was formerly called a seer" (1 Sm 9:9). And so she says, Sir, I see that you are a prophet. As if to say: You show that you are a prophet by revealing hidden things to me. It is clear from this, as Augustine says, that her husband was beginning to return to her. But he did not return completely because she regarded Christ as a prophet: for although he was a prophet—"A prophet is not without honor except in his own country" (Mt 13:57)—he was more than a prophet, because he produces prophets: "Wisdom produces friends of God and prophets" (Wis 7:27).
Source: Commentary on John