Psalms 40:2

1 I waited patiently for the LORD; He inclined to me and heard my cry.

He lifted me up from the pit of despair, out of the miry clay; He set my feet upon a rock, and made my footsteps firm.

3 He put a new song in my mouth, a hymn of praise to our God. Many will see and fear and put their trust in the LORD.

4 Blessed is the man who has made the LORD his trust, who has not turned to the proud, nor to those who lapse into falsehood.

Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
He lifted me up from the pit of despair, out of the miry clay; He set my feet upon a rock, and made my footsteps firm.
KJV
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.
WEB
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.
ASV
He brought me up also out of a horrible pit, out of the miry clay; And he set my feet upon a rock, and established my goings.
DARBY
And he brought me up out of the pit of destruction, out of the miry clay, and set my feet upon a rock; he hath established my goings:
BLB
And He brought me up from the pit of desolation, from the mud of the mire; and He raised up my feet upon a rock, [and] has made firm my steps.
ÅB
Han dro meg opp av fordervelsens grav, av den dype gjørmen.
Han satte føttene mine på en klippe
og gjorde trinnene mine faste.
OTB
Han løftet meg fra ødeleggelsens grav, opp av gjørmen;
Og Han satte mine føtter på en klippe, gjorde mine skritt sikre.
B1930
Og han drog mig op av fordervelsens grav, av det dype dynd, og han satte mine føtter på en klippe, han gjorde mine trin faste.

Study notes (Tyndale)

Original text and word study

Cross references