I cried unto the Lord with my voice
The experience which the psalmist had of being heard in prayer, was what gave great encouragement to his faith, as to his interest in God and salvation by him, when his enemies were so increased about him; for crying here is to be understood of prayer, as it is often used in this book of Psalms: and so the Targum renders it, "I prayed"; and this designs vocal prayer. Sometimes there is a crying in prayer and no voice heard, as it is said of Moses, ( Exodus 14:15 ) ; and was the case of Hannah, ( 1 Samuel 1:13 ) ; but this was with a voice, and a loud one, as in ( Psalms 55:17 ) ; denoting ardour, fervency, and importunity; and such prayer avails much with God. The object addressed in prayer is the Lord, the God of his life, and who was able to save him, and supply all his wants;
and he heard me out of his holy hill;
either out of the church, the holy hill of Zion, ( Psalms 2:6 ) ; where David prayed and God granted his presence, and gave an answer to his prayers; or out from the mercy seat and ark, which was a type of the propitiatory, Christ, and which David had brought to his own city, the hill of Zion; or from heaven, the habitation of God's holiness: David was a man of prayer, and he was often heard and answered by God. And this also is true of Christ, he offered up prayers and supplications with strong crying and tears to God ( Hebrews 5:7 ) , that was able to save him; and he was heard by him, yea, the Father always heard him: and God is a God hearing and answering the prayers of his people, sooner or later: sometimes before, sometimes at, and sometimes after their crying to him.
Selah; on this word, (See Gill on Psalms 3:2).