Christianity holds to the view that prayer is of the leading of the Holy Spirit. Octavius Winslow put it in these words:
It must be acknowledged by the spiritual mind that all true prayer is of the leading of the Spirit; that He is the author of all real approach of the soul to God. All true prayer is put into words by the Spirit. He is the Author of prayer in the soul.
The scriptures speak of God the Holy Spirit residing within all who believe in the Son of God. The Spirit guides, instructs and empowers believers. (John 14:16-17) As well, the “Spirit of truth” confirms everything about Jesus. (John 15:26) The unregenerate (unsaved) person is not Spirit filled. God does not hear anyone’s prayer unless it is put into words by the Holy Spirit. So if we want our prayers to be heard and answered we must pray to the right God.
“This is life eternal, that they might know thee, the only true God, and Jesus Christ, whom thou hast sent” (John 17:3).