Psalms 40:2 Meaning and Explanation
“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.”
King James Version (KJV)
This study note uses an AI-assisted editorial workflow with source, duplication, and quality checks. See how verse explanations are prepared.
Read this verse in context with translation switching:
Read Full Chapter →Rescue stories often stop at the moment of escape. Psalm 40 keeps going, and the second half of verse 2 turns out to be as important as the first. Being pulled out of trouble answers one need; being able to stand and walk afterward answers another. Many who have come through a crisis recognize how easily the ground gives way again once the emergency passes.
David describes rescue in four motions: lifted from a dreadful pit, drawn out of sucking mud, planted on solid rock, and given a steady walk. God supplies both the escape and the footing afterward.
The Context of Psalms 40:2
Psalm 40 carries a heading assigning it to David and directing it to the chief musician. It opens as testimony: the psalmist waited patiently, and the LORD inclined and heard his cry (verse 1). Verse 2 recounts what that hearing produced, and verse 3 records the result, a new song in his mouth that leads many to trust the LORD. The psalm then moves through God's countless works (verse 5) into words about delighting to do God's will (verses 6-8), and finally turns to fresh petition, since innumerable evils have compassed him about (verse 12). Deliverance already received grounds the plea that follows.
What Does Psalms 40:2 Mean?
Four verbs carry the verse, and every one of them has God as its subject. He brought up, he set, he established; the psalmist does none of the lifting. The pit is 'horrible,' a word carrying dread and confusion, and the clay is 'miry,' the kind that grips harder the more a trapped man struggles. Those two images describe helplessness from two angles, depth and suction. Against them stand rock and established goings. A rock offers a surface that will not shift underfoot, and 'established my goings' means the walking itself was made firm. The rescue extends past the rim of the pit into the ordinary steps that follow.
Verse 2 stands between a cry that was heard and a song that was given, which is the psalm's basic movement from need to praise. That order shapes verses 3 through 5: rescue produces testimony, testimony produces trust in others who see it, and trust produces wonder at works too many to number. Pit imagery runs through Israel's scriptures for the grave, for prison, and for overwhelming distress, so readers hear more than one kind of trouble at once. Joseph in a cistern and Jeremiah sunk in mud both lived this line before it was written. God's habit of reaching into low places is treated here as settled character.
Hebrews 10:5-7 takes up words from later in this psalm and places them in the mouth of Christ coming into the world. That reading invites us to hear the whole psalm with him in view, including the pit. The one who delights to do the Father's will went down into death and was raised, and the language of being brought up out of the deep belongs to that morning in a way the psalmist could hardly have measured. For those joined to him, verse 2 describes a pattern with an end in sight: descent answered by lifting, and a walk finally established on ground that holds.
Psalms 40:2 in the Original Language
kun (כּוּן), 'established' -- to set something firm and fixed so it will hold. The same root describes a throne made secure and a heart steadied. Applied to 'my goings,' it means the psalmist's own walking was made reliable, steady step after steady step.
Bible Verses Related to Psalms 40:2
“I sink in deep mire, where there is no standing: I am come into deep waters, where the floods overflow me.”
- Psalm 69:2
“And they took him, and cast him into a pit: and the pit was empty, there was no water in it.”
- Genesis 37:24
“Then took they Jeremiah, and cast him into the dungeon of Malchiah the son of Hammelech, that was in the court of the prison: and they let down Jeremiah with cords. And in the dungeon there was no water, but mire: so Jeremiah sunk in the mire.”
- Jeremiah 38:6
“The LORD is my rock, and my fortress, and my deliverer; my God, my strength, in whom I will trust; my buckler, and the horn of my salvation, and my high tower.”
- Psalm 18:2
Where Psalms 40:2 Echoes in Scripture
Psalm 40:6-8 receives its fullest hearing in Hebrews 10:5-7, where the writer applies those verses to Christ entering the world to do God's will. Verse 2 sits upstream of that quotation, supplying the experience of rescue that makes the offered obedience of verses 6 through 8 intelligible. A closer verbal cousin appears in Psalm 69:2 and 69:14, where the sufferer sinks in deep mire with no standing. Reading the two psalms together shows the same vocabulary of mud and depth used for prayer as well as for testimony.
How to Apply Psalms 40:2 Today
Two questions come out of this verse for ordinary weeks. First, where has God already brought us up, and have we said so out loud? Verse 3 shows testimony spreading trust, so naming a past deliverance is useful work. Second, what does established footing look like now? Recovery from debt, addiction, grief, or a wrecked reputation usually needs new habits, honest company, and steady rhythms of prayer, all of which are ways the walking gets made firm. When we are still in the clay, this verse gives permission to wait patiently as verse 1 describes, calling out and expecting to be heard.
Reflection & Prayer
If someone asked us to describe our rock in a sentence, what would we say? The answer reveals what we actually rest our weight on. A prayer: God, you have lifted people out of places they could not climb from. Where I am stuck, come down and get me. Where I am standing, keep my steps steady, and give me a new song worth other people hearing. Amen.