In short
David says that doing God’s will is what he wants most. God’s law has moved off the page and into his heart. Obedience turns into delight when God’s word lives inside us.
What does Psalm 40:8 mean?
David says that doing God’s will is his joy. He isn’t obeying under protest. The reason is in the second line: God’s law is “within my heart.” When God’s word lives inside a person, obedience comes from what he wants, rather than from rules pressed on him from outside.
Who wrote it, and what led up to it?
The heading reads “For the Chief Musician. A Psalm by David.” It begins with rescue: “I waited patiently for the LORD.” God “brought me up also out of a horrible pit, out of the miry clay,” set his feet on a rock and “put a new song in my mouth.”
Then David says, “Sacrifice and offering you didn’t desire. You have opened my ears.” What God wants is a willing servant who listens. In verse 7 David answers, “Behold, I have come,” and today’s verse finishes his reply. Right after it he says he has “proclaimed glad news of righteousness in the great assembly.”
“I delight to do your will” and “your law is within my heart”
I delight to do your will puts joy into obedience. It is the answer of someone grateful for rescue, glad to be put to work by the One who saved him.
Your law is within my heart means God’s teaching has been taken in, not merely heard. It shapes what a person loves and wants, and that is why the doing becomes a delight.
A thought for today
I had this one pegged as a duty verse. Somebody gritting his teeth and doing the right thing because the right thing has to get done.
Then I read the psalm around it. David starts out in a pit. Miry clay, he calls it, the kind that takes hold of your boots and won’t give them back. God pulls him out, sets his feet on a rock, and puts a new song in his mouth. Only after all that does he say, I delight to do your will.
That’s a man who has been hauled out of the mud. Of course he’s glad to do what his rescuer asks.
And he says the law is within his heart, which is a good deal further in than a list stuck to the icebox. That’s where the wanting starts.
Of course he’s glad to do what his rescuer asks.
Live it today
Pray it
My God, You lifted me out of the pit and set my feet on a rock. I want to delight to do Your will, the way David did, and not drag my feet. Write Your law within my heart, deeper than habit. Put a new song in my mouth this Sunday. In Jesus’ name. Amen.
Pray longer: A Prayer For Doing The Will Of The Father
The picture behind the verse is The Giving of the Law on Mount Sinai, an engraving by Gustave Doré from his illustrated Bible of 1866.



