Context & Key Themes
Psalm 40 is one of the great psalms of testimony β but it is a testimony with a twist. David opens looking backward at what God has already done, praising Him for a deliverance already accomplished, and then turns midway through the same psalm to face a new crisis and cry out for help all over again. This two-movement structure is not contradictory. It is honest. The God who has already pulled David out of the miry bog is the same God David now calls upon from the pit of new trouble. The past deliverance becomes the ground of present hope. The psalm is also deeply Messianic β the author of Hebrews quotes verses 6 through 8 directly, applying them to Christ and His coming to do the will of the Father where the old system of sacrifices had fallen short.
Key Verse
“I waited patiently for the Lord; he inclined to me and heard my cry.”
β Psalm 40:1 (ESV)
Summary
The opening verses are among the most beloved in the psalter. David waited patiently β the Hebrew carries the sense of waiting with intensity, not passive resignation β and God inclined to him, bending low to hear. He was drawn up from the pit of destruction, out of the miry bog, and set on solid rock with his steps made secure. A new song was placed in his mouth. The result was not merely personal joy but public witness β many would see and fear and put their trust in the Lord. David then reflects on God’s wondrous deeds and thoughts toward His people, declaring them beyond counting and beyond telling.
The Messianic section arrives with surprising theological depth. Sacrifice and burnt offering, God has not delighted in β but He has given an open ear, a readied obedience. In the scroll of the book, it is written of the one who comes to do God’s will, whose law is within his heart. This language reaches past David to the One in whom it finds its fullest expression, who came not to be served but to serve, and who in Gethsemane said, “not my will, but yours.” The New Testament writer of Hebrews saw this clearly and said so plainly.
Then the psalm pivots. David has proclaimed God’s righteousness in the great congregation. He has not concealed His steadfast love or faithfulness. And now he needs them himself. Troubles have encompassed him beyond counting. His iniquities have overtaken him and he cannot see. His heart fails. He cries for the Lord to come quickly, to be pleased to deliver him, to make haste. Even here β asking for urgency from the God who moves in His own time β the plea is rooted in trust rather than panic. And it closes with a reminder that the Lord takes thought for him, even as a poor and needy man.
Reflection
The miry bog is one of the most vivid images in the psalter for a reason. Anyone who has been genuinely stuck β not inconvenienced, not mildly delayed, but unable to move without sinking deeper β knows exactly what David means. The bog doesn’t release you by effort. It requires someone else to reach in and pull. David’s waiting, then, is not passivity. It is the active, sustained decision to stay where God can reach rather than thrash further into the mire trying to save himself.
What makes this psalm remarkable is that David doesn’t wait until the new trouble is resolved before praising God for the old deliverance. He holds both at once β gratitude for what has been done and need for what must still be done β without letting either erase the other. That is a mature and genuinely difficult posture of faith. It refuses the comfort of pretending everything is resolved, and it refuses the despair of forgetting what God has already done. It stands in the middle of both, rock underfoot from a past rescue, surrounded by new waters, and calls on the same God. That is what faith in a reliable God actually looks like.