1 Samuel 1:13
To those, then, who have repented and not firmly believed, God grants their requests through their supplications. But to those who live sinlessly and gnostically, He gives, when they have but merely entertained the thought. For example, to Anna, on her merely conceiving the thought, conception was vouchsafed of the child Samuel. "Ask," says the Scripture, "and I will do. Think, and I will give." For we have heard that God knows the heart, not judging the soul from [external] movement, as we men; nor yet from the event. For it is ridiculous to think so.
Source: The Stromata, Book 6, Chapter 12