She looks to the future when she adds, and even now I know that whatever you ask from God, God will give you. In saying this she spoke the partial truth - for it belonged to Christ as having a human nature to petition God; thus we read that he often prayed, and above it is said, "If any one is a worshipper of God and does his will, God listens to him" (9:31). Yet it was less than the whole truth; for by saying this she seemed to be thinking of Christ as a saintly man who could by his prayer revive one already dead, just as Elisha by his prayer raised one who was dead.
Source: Commentary on John