Psalm 18:6 in the King James Version
In my distress I called upon the LORD, and cried unto my God: he heard my voice out of his temple, and my cry came before him, even into his ears.
Context
5 The cords of Sheol were around me. The snares of death came on me.
6 In my distress I called on the LORD, and cried to my God. He heard my voice out of his temple. My cry before him came into his ears.
7 Then the earth shook and trembled. The foundations also of the mountains quaked and were shaken, because he was angry.