Field Guide to Bible StoriesThe Field Guide Series
All Psalms
No. 33Psalms of Thanksgiving

Psalm 40

He drew me up from the pit and set my feet on a rock

StatusEssential
Read2 min
Study5 min
DifficultyBeginner
Psalm 40 · A psalm of David · Israel

The Point

Psalm 40 begins with a rescue image so physical you can feel it: hauled out of a pit of mud, feet set on rock, steps made secure. What follows is unexpected. Instead of offering sacrifices in return, David says God did not want them, He opened his ears, and so David says here I am, I delight to do Your will. Rescue produces obedience, not payment. And then, remarkably, the psalm ends still in trouble.

Story Snapshot

David tells how he waited patiently for God, who turned to him and drew him out of a slimy pit, setting his feet on a rock and putting a new song in his mouth. He declares that God does not desire sacrifice but an open ear, and responds, here I am, I delight to do Your will. He tells of proclaiming God's righteousness in the assembly, then turns to plead for help as troubles surround him again.

Main Characters

CharacterRoleKey TraitWhy They Matter
DavidThe rescued servantGrateful, obedient, still strugglingLifted from the pit, offers obedience, then pleads again
The LORDThe one who liftsAttentive, wanting obedienceDraws him from the mire and desires an open ear

Story Summary

The psalm opens with waiting: David waited patiently for the LORD, who inclined to him and heard his cry, drawing him up from the pit of destruction, out of the miry bog, setting his feet upon a rock and making his steps secure. God put a new song in his mouth, a song of praise, so that many will see and fear and trust in the LORD. He calls blessed the one who trusts God rather than the proud or those who turn aside to false gods, and marvels that God's wondrous deeds and thoughts toward His people are too many to recount. Then comes the psalm's pivot: sacrifice and offering God did not desire, but has opened his ear; burnt offering and sin offering He has not required. David responds, behold, I have come; in the scroll of the book it is written of me, I delight to do Your will, my God, and Your law is within my heart. He describes telling the glad news of God's righteousness in the great congregation, not restraining his lips, not hiding God's steadfast love and faithfulness. The tone then shifts sharply to petition: evils have encompassed him beyond number, his iniquities have overtaken him so that he cannot see, they are more than the hairs of his head and his heart fails. He asks God to deliver and hasten to help, that those seeking his life be put to shame, that those who seek God rejoice, and though he is poor and needy, the Lord takes thought for him. The psalm ends with a plea, do not delay.

Timeline

  • The WaitingDavid waited patiently for the LORD.
  • Out of the PitDrawn from the miry bog, feet set on rock.
  • A New SongPraise placed in his mouth for many to see.
  • Not SacrificeGod desired an open ear, not offerings.
  • Here I AmI delight to do Your will.
  • Told in the AssemblyHe does not restrain his lips.
  • Troubles ReturnEvils encompass him; he pleads, do not delay.

Themes

RescueThanksgivingObedienceWaitingPerseverance

What This Story Means

Psalm 40 pairs two things that fit together more honestly than we expect: overwhelming gratitude and ongoing trouble. It does not tell a story that ends at the rescue. The man on the rock with the new song is, by the last verses, surrounded again and asking God to hurry. That structure is truer to most lives than a tidy testimony. The psalm's theological center is its statement about sacrifice, God wanted an open ear more than offerings, meaning attentive obedience rather than ritual payment for rescue. The response, here I am, I delight to do Your will, is quoted in Hebrews 10 and applied to Christ, whose obedience the letter presents as what the sacrificial system pointed toward. And the pit imagery is worth sitting with, David does not climb out; he waits and is drawn up.

Bringing It Home

  • Rescue calls for obedience rather than repayment.
  • Gratitude and ongoing trouble can occupy the same life honestly.
  • We are drawn out of pits; we rarely climb out ourselves.
  • A new song is given, not manufactured.

Key Verse

Psalm 40:2

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.

Did You Know?

  • Hebrews 10:5-7 quotes this psalm and applies it to Christ's obedience.
  • The closing verses appear nearly verbatim as Psalm 70.
  • 'Opened my ears' pictures readiness to hear and obey.
  • The psalm moves from thanksgiving to lament, the reverse of the usual order.

Read Next

What This Shows Us About God

  • God stoops to hear and lift those who wait for Him.
  • God desires attentive obedience over ritual offering.
  • God takes thought for the poor and needy.

What This Shows Us About People

  • We cannot climb out of our own pits.
  • We try to repay rescue instead of obeying.
  • We face new trouble even after real deliverance.

A Question to Sit With

Has a rescue in my life made me grateful, or has it also made me obedient?

Prayer

LORD, You drew me out of the mud and set my feet on rock, and I could not have climbed out alone. You do not want payment from me; You want my open ear. So here I am, teach me to delight in Your will. And when trouble closes in again, as it has, do not delay. Amen.