Psalm 40:2 in the World English Bible
He brought me up also out of a horrible pit, out of the miry clay. He set my feet on a rock, and gave me a firm place to stand.
Context
1 I waited patiently for the LORD; and he inclined unto me, and heard my cry.
2 He brought me up also out of an horrible pit, out of the miry clay, and set my feet upon a rock, and established my goings.
3 And he hath put a new song in my mouth, even praise unto our God: many shall see it, and fear, and shall trust in the LORD.