Select a Psalm

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
Psalms.org
Your Ultimate Psalms Resource
  • Home
  • Introduction
  • Study
  • Listen
  • Sing
Psalms.org
Your Ultimate Psalms Resource
Home Introduction Study Listen Sing

Psalm 40

Psalm Text

To the choirmaster. A Psalm of David.

1 I waited patiently for the LORD;
   he inclined to me and heard my cry.
2 He drew me up from the pit of destruction,
   out of the miry bog,
and set my feet upon a rock,
   making my steps secure.
3 He put a new song in my mouth,
   a song of praise to our God.
Many will see and fear,
   and put their trust in the LORD.

4 Blessed is the man who makes
   the LORD his trust,
who does not turn to the proud,
   to those who go astray after a lie!
5 You have multiplied, O LORD my God,
   your wondrous deeds and your thoughts toward us;
   none can compare with you!
I will proclaim and tell of them,
   yet they are more than can be told.

6 In sacrifice and offering you have not delighted,
   but you have given me an open ear.
Burnt offering and sin offering
   you have not required.
7 Then I said, “Behold, I have come;
   in the scroll of the book it is written of me:
8 I delight to do your will, O my God;
   your law is within my heart.”

9 I have told the glad news of deliverance
   in the great congregation;
behold, I have not restrained my lips,
   as you know, O LORD.
10 I have not hidden your deliverance within my heart;
   I have spoken of your faithfulness and your salvation;
I have not concealed your steadfast love and your faithfulness
   from the great congregation.

11 As for you, O LORD, you will not restrain
   your mercy from me;
your steadfast love and your faithfulness will
   ever preserve me!
12 For evils have encompassed me
   beyond number;
my iniquities have overtaken me,
   and I cannot see;
they are more than the hairs of my head;
   my heart fails me.

13 Be pleased, O LORD, to deliver me!
   O LORD, make haste to help me!
14 Let those be put to shame and disappointed altogether
   who seek to snatch away my life;
let those be turned back and brought to dishonor
   who delight in my hurt!
15 Let those be appalled because of their shame
   who say to me, “Aha, Aha!”

16 But may all who seek you
   rejoice and be glad in you;
may those who love your salvation
   say continually, “Great is the LORD!”
17 As for me, I am poor and needy,
   but the Lord takes thought for me.
You are my help and my deliverer;
   do not delay, O my God!


Scripture taken from the ESV® Bible (The Holy Bible, English Standard Version®), © 2001 by Crossway, a publishing ministry of Good News Publishers. Used by permission. All rights reserved.

Psalm Devotional
A Tale of Three Kings

Written by Anthony Selvaggio. This devotional was first published in the May 2006 issue of The Reformed Presbyterian Witness.


As the king goes, so goes the nation. This is a true saying. Think about how many people have suffered due to the leadership of men like Hitler, Stalin, and Mao. This principle was also true for ancient Israel. Good kings brought blessing to the nation, while wicked kings brought curses upon the people.

There was one standard to determine whether a king of Israel was a good king. That standard was established in Deuteronomy 17:18-20, which declares that the reign of the king, and thus the prosperity of the kingdom, is directly connected to the king’s obedience to God’s law.

As the king goes, so goes the nation. Psalm 40 tells the tale of three kings.

The King Who Failed to Obey

The first king is implied by the text. In verses 6-8, the psalmist reveals a basic principle—obedience is better than sacrifice. Here the psalmist is recalling a principle learned by Israel’s first king, Saul. In 1 Samuel 15 we learn that after Saul was anointed king, God, through the Prophet Samuel, assigned him the task of obliterating the Amalekites. Saul was commanded to destroy every person and even the animals. Saul disobeyed. He took the king of the Amalekites as his prisoner, and he saved the best animals.

God was grieved by Saul’s disobedience, as was Samuel. Samuel eventually confronted Saul at Gilgal, where Saul was sacrificing the sheep to God. It was there that Samuel informed King Saul, “To obey is better than sacrifice, and to heed is better than the fat of rams” (1 Sam. 15:22). Saul was the king who failed to obey.

The King Who Desired to Obey

The second king in our tale is explicitly referred to in Psalm 40. David is the author of this psalm; he is the one who has been delivered from the slimy pit and the mud and the mire (vv. 1-2). David responds to this great deliverance by yearning to yield to God that which most pleases him—obedience. “I desire to do your will, O my God; your law is within my heart” (v. 8). David was a man after God’s own heart; he desired to obey God. However, David lacked the ability to fulfill these words. He committed adultery with Bathsheba, he murdered Uriah, and he sinfully numbered the people of Israel against God’s command. David was unable to do God’s will, and he testifies to this fact in this psalm. “My sins have overtaken me… .They are more than the hairs of my head, and my heart fails within me” (v. 12). David was the king who desired to obey, but could not.

The King Who Obeyed Perfectly

The third king in Psalm 40 is referred to typologically and prophetically. While verses 6-8 are hyperbolic when applied to David, they are prophetically accurate when applied to Jesus. Jesus is the king who offered the perfect obedience that God required.

The New Testament confirms this interpretation. The writer to the Hebrews provides us with a glorious and detailed commentary on Psalm 40. In Hebrews 10:5-14, we learn that Jesus is the king who came and fulfilled the will of the Father. It was His perfect obedience that qualified Him as the acceptable sacrifice for our sins. “We have been made holy through the sacrifice of the body of Jesus Christ once for all” (Heb. 10:10). Jesus not only offered His body as a perfect sacrifice for our sins, but He also imputes His perfect obedience to us so that we are construed as forensically perfect in the judgment of God (Rom. 4:1-6, 5:12-21; 2 Cor. 5:21).

As the king goes, so goes the nation. It is a true saying. The good news is that we serve the finest of kings. We serve the King of kings. We serve the King who obeyed perfectly!

Listen to this Psalm Sung

Messiah album art I Waited for the Lord (Psalm 40A)
The Book of Psalms for Worship | Messiah
  • Listen on...
  •  Amazon Music
  •  Apple Music
  •  Spotify
  •  YouTube Music
  •  More Options
  •  More Options
Communion album art I Waited for the Lord (Psalm 40A)
The Book of Psalms for Worship | Communion
  • Listen on...
  •  Amazon Music
  •  Apple Music
  •  Spotify
  •  YouTube Music
  •  More Options
Faithfulness album art I Hid Not in My Heart (Psalm 40B)
The Book of Psalms for Worship | Faithfulness
  • Listen on...
  •  Amazon Music
  •  Apple Music
  •  Spotify
  •  YouTube Music
  •  More Options
  •  More Options

Find a Psalm by Number

About Psalm 40

Appears in: Book I
Author: David

Categories

  • Psalms of Confidence
  • Messianic Psalms

New Testament References

  • Hebrews 10:5, 9 (v. 6-8)
  • Revelation 5:9 (v. 3)
Bold = Direct quotation

Further Study

  • Matthew Henry's Commentary on Psalm 40
  • Matthew Henry's Concise Commentary on Psalm 40
  • John Calvin's Commentary on Psalm 40
  • Christ's Advent in the Psalms

Featured In

Faithfulness album cover Faithfulness
Selections from The Book of Psalms for Worship
Psalm 39
Back to All Psalms
Psalm 41
Psalms.org logo

A collection of free resources to help everyone learn from and enjoy the Book of Psalms, whether you are just learning about or rediscovering this majestic book of the Bible, or wish to deepen your understanding further.

Psalms.org is a project of Crown and Covenant Publications, the publishing ministry of the Reformed Presbyterian Church of North America.

Support This Ministry

  • Intro to the Psalms
  • Study the Psalms
  • Listen to the Psalms
  • Sing the Psalms
  • Crown and Covenant Publications logo
  • The Reformed Presbyterian Church of North America logo
© 2026 Crown & Covenant Publications
  • Terms of Use
  • Copyright Policy