Short answer: Psalm 40 celebrates God's deliverance and expresses joyful obedience. David declares that God has set his feet upon a rock and put a new song in his mouth. He proclaims that sacrifice and offering God did not desire but an open ear and a willing heart. The psalm shifts to a plea for continued deliverance from multiplying troubles.
The setting of the psalm
Psalm 40 is a psalm of thanksgiving that transitions into a plea for help. David begins by recounting God's past deliverance — he waited patiently for the Lord, and God drew him up from the pit of destruction and set his feet upon a rock. This testimony of past faithfulness becomes the foundation for present trust.
The most theologically significant section is David's declaration that God desires obedience over sacrifice. 'Sacrifice and offering you have not desired, but you have given me an open ear.' This anticipates the prophetic critique of empty ritual and points forward to Christ's perfect obedience.
The psalm shifts dramatically at verse 11. David's troubles have multiplied beyond number. Sins and enemies surround him, and he cries out for deliverance. He acknowledges his own poverty and need before God, yet trusts that the Lord thinks of him.
Psalm 40 is quoted in Hebrews 10:5-7, where the words are placed on the lips of Christ at his incarnation. 'A body you have prepared for me' replaces 'you have given me an open ear,' applying the psalm to Christ's willing incarnation and obedience unto death.
For Christians, this psalm is deeply messianic. Christ perfectly fulfilled the obedience that David celebrated. He came to do God's will, offering his body as the once-for-all sacrifice. Believers are called to follow this pattern of grateful obedience and trusting prayer.
I waited patiently for Yahweh. He turned to me, and heard my cry. 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. He has put a new song in my mouth, even praise to our God. Many shall see it, and fear, and shall trust in Yahweh. Blessed is the man who makes Yahweh his trust, and doesn’t respect the proud, nor such as turn away to lies. Many, Yahweh, my God, are the wonderful works which you have done, and your thoughts which are toward us. They can’t be declared back to you. If I would declare and speak of them, they are more than can be counted.
Psalm 40:1-5 (World English Bible)
Key words and their meaning
The Hebrew word for 'waited patiently' (qavoh qivviti) in verse 1 is a doubled form that emphasizes intense, focused waiting. David did not wait casually but with eager expectation. The 'pit of destruction' (bor shaon) suggests a noisy, chaotic pit — a place of despair.
The phrase 'open my ears' (karita oznayim) in verse 6 is literally 'you have dug ears for me.' This unusual expression suggests that God has prepared David for obedience. The Septuagint translates it as 'a body you have prepared for me,' which Hebrews 10:5 applies to Christ.
The word 'poverty' (ani) in verse 17 describes David's condition before God. He is 'poor and needy,' yet the Lord thinks of him. This is the posture of faith: acknowledging one's complete dependence on God.
Sacrifice and offering you didn’t desire. You have opened my ears. You have not required burnt offering and sin offering. Then I said, “Behold, I have come. It is written about me in the book in the scroll. I delight to do your will, my God. Yes, your law is within my heart.” I have proclaimed glad news of righteousness in the great assembly. Behold, I will not seal my lips, Yahweh, you know. I have not hidden your righteousness within my heart. I have declared your faithfulness and your salvation. I have not concealed your loving kindness and your truth from the great assembly.
Psalm 40:6-10 (World English Bible)
What the psalm claims
First, God hears patient waiting. David waited patiently, and God inclined to him. The testimony of past deliverance is the foundation for present trust.
Second, obedience is better than sacrifice. God desires hearts that are open to his will, not empty religious rituals. This anticipates the New Testament teaching that faith without works is dead.
Third, God thinks of his people even when they are poor and needy. David's poverty does not mean God has forgotten him. The Lord's thoughts toward his people are countless.
Don’t withhold your tender mercies from me, Yahweh. Let your loving kindness and your truth continually preserve me. For innumerable evils have surrounded me. My iniquities have overtaken me, so that I am not able to look up. They are more than the hairs of my head. My heart has failed me. Be pleased, Yahweh, to deliver me. Hurry to help me, Yahweh. Let them be disappointed and confounded together who seek after my soul to destroy it. Let them be turned backward and brought to dishonor who delight in my hurt. Let them be desolate by reason of their shame that tell me, “Aha! Aha!” Let all those who seek you rejoice and be glad in you. Let such as love your salvation say continually, “Let Yahweh be exalted!” But I am poor and needy. May the Lord think about me. You are my help and my deliverer. Don’t delay, my God.
Psalm 40:11-17 (World English Bible)
Where readers disagree
The relationship between the two halves of the psalm (verses 1-10 and 11-17) has been discussed. Some see them as two separate psalms later combined; others see a deliberate movement from thanksgiving to petition that reflects the rhythm of the life of faith.
The quotation of verses 6-8 in Hebrews 10:5-7 has been the subject of extensive discussion. The Septuagint's translation of 'open my ears' as 'a body you have prepared for me' changes the imagery but preserves the meaning of willing obedience.
The phrase 'let all who seek you rejoice and be glad in you' (verse 16) appears in a similar form in other psalms. This formula of blessing on those who seek God is a recurring theme in the Psalter.
I waited patiently for Yahweh. He turned to me, and heard my cry. 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. He has put a new song in my mouth, even praise to our God. Many shall see it, and fear, and shall trust in Yahweh. Blessed is the man who makes Yahweh his trust, and doesn’t respect the proud, nor such as turn away to lies. Many, Yahweh, my God, are the wonderful works which you have done, and your thoughts which are toward us. They can’t be declared back to you. If I would declare and speak of them, they are more than can be counted.
Psalm 40:1-5 (World English Bible)
How this psalm connects to the gospel
The themes of Psalm 40 find their ultimate fulfillment in the person and work of Jesus Christ. The New Testament frequently draws on the Psalms to explain who Jesus is and what he accomplished. The psalm's language of deliverance, kingship, and steadfast love all point toward the gospel.
In Jesus, believers see the perfect fulfillment of everything this psalm celebrates. The deliverance David experienced was a foreshadowing of the greater deliverance Christ would accomplish. The kingship celebrated in the psalm points to Christ's eternal reign. The steadfast love described in the psalm is fully revealed in Jesus's sacrificial death and resurrection.
For Christians, reading this psalm is an opportunity to see God's faithfulness across the entire biblical story. The same God who heard David's cry also hears the prayers of his people today. The same deliverance David experienced finds its ultimate expression in the salvation Christ offers. The psalm invites believers to trust in this faithful God and to make his praise known to all generations.
The New Testament writers understood the Psalms as a prophetic witness to Christ. Jesus himself told his disciples that everything written about him in the Psalms must be fulfilled (Luke 24:44). When the apostles preached about Jesus, they regularly quoted the Psalms to demonstrate that his suffering, death, resurrection, and exaltation were all part of God's redemptive plan.
Psalm 40 participates in this prophetic witness. Whether through its language of kingship, its descriptions of suffering and deliverance, or its celebration of God's steadfast love, this psalm contributes to the biblical portrait of the Messiah. Reading it in light of Christ does not diminish its original meaning but reveals its deepest significance.
Sacrifice and offering you didn’t desire. You have opened my ears. You have not required burnt offering and sin offering. Then I said, “Behold, I have come. It is written about me in the book in the scroll. I delight to do your will, my God. Yes, your law is within my heart.” I have proclaimed glad news of righteousness in the great assembly. Behold, I will not seal my lips, Yahweh, you know. I have not hidden your righteousness within my heart. I have declared your faithfulness and your salvation. I have not concealed your loving kindness and your truth from the great assembly.
Psalm 40:6-10 (World English Bible)
Biblical fidelity check
Psalm 40 is theologically sound and consistent with the broader biblical witness. Its themes of God's steadfast love, faithfulness, and righteousness are central to biblical theology. The psalm contributes to the Psalter's comprehensive portrait of God's relationship with his people. While each psalm reflects its original historical context, its truths are enduring and applicable to believers today. The New Testament affirms and deepens the themes found in this psalm, particularly through the person and work of Jesus Christ.
Frequently asked questions
What is the main message of Psalm 40?
The main message of Psalm 40 is thankfulness and a cry for deliverance. The psalm teaches that God is worthy of trust and praise. It calls believers to respond to God's character with faith, obedience, and worship.
How does Psalm 40 point to Christ?
Psalm 40, like all Scripture, ultimately points to Jesus Christ. The themes of God's deliverance, steadfast love, and kingship find their fullest expression in Christ. The New Testament frequently quotes the Psalms to explain Christ's person and work. As Jesus himself said, the Scriptures bear witness to him (John 5:39).
How does Psalm 40 apply to Christians today?
Psalm 40 applies to believers today by providing language for prayer, praise, and lament. It teaches about God's character and how believers should respond to him. The psalm's truths are timeless, addressing the universal human experiences of joy, suffering, hope, and trust.
Deepen your Bible study
Get weekly Bible studies, sermon notes, and devotionals delivered to your inbox. Subscribe to our newsletter for free resources to help you grow in your knowledge of Scripture.
Support our ministry
If this study has helped you understand God's Word better, please consider making a donation to support Sermon Academy. Your generosity helps us continue providing free, high-quality Bible study resources.