4 Oh, the joys of those who trust the Lord, who have no confidence in the proud or in those who worship idols. 5 O Lord my God, you have performed many wonders for us. Your plans for us are too numerous to list. You have no equal. If I tried to recite all your wonderful deeds, I would never come to the end of them.

6 You take no delight in sacrifices or offerings. Now that you have made me listen, I finally understand - you don't require burnt offerings or sin offerings. 7 Then I said, "Look, I have come. As is written about me in the Scriptures: 8 I take joy in doing your will, my God, for your instructions are written on my heart."

Matthew Henry's Commentary on Psalm 40:4-8

Commentary on Psalm 40:1-5

(Read Psalm 40:1-5)

Doubts and fears about the eternal state, are a horrible pit and miry clay, and have been so to many a dear child of God. There is power enough in God to help the weakest, and grace enough to help the unworthiest of all that trust in him. The psalmist waited patiently; he continued believing, hoping, and praying. This is applicable to Christ. His agony, in the garden and on the cross, was a horrible pit and miry clay. But those that wait patiently for God do not wait in vain. Those that have been under religious melancholy, and by the grace of God have been relieved, may apply verse 2 very feelingly to themselves; they are brought up out of a horrible pit. Christ is the Rock on which a poor soul can alone stand fast. Where God has given stedfast hope, he expects there should be a steady, regular walk and conduct. God filled the psalmist with joy, as well as peace in believing. Multitudes, by faith beholding the sufferings and glory of Christ, have learned to fear the justice and trust in the mercy of God through Him. Many are the benefits with which we are daily loaded, both by the providence and by the grace of God.

Commentary on Psalm 40:6-10

(Read Psalm 40:6-10)

The psalmist foretells that work of wonder, redemption by our Lord Jesus Christ. The Substance must come, which is Christ, who must bring that glory to God, and that grace to man, which it was impossible the sacrifices should ever do. Observe the setting apart of our Lord Jesus to the work and office of Mediator. In the volume, or roll, of the book it was written of him. In the close rolls of the Divine decrees and counsel, the covenant of redemption was recorded. Also, in all the volumes of the Old Testament something was written of him, John 19:28. Now the purchase of our salvation is made, the proclamation is sent forth, calling us to come and accept it. It was preached freely and openly. Whoever undertook to preach the gospel of Christ, would be under great temptation to conceal it; but Christ, and those he calls to that work, are carried on in it. May we believe his testimony, trust his promise, and submit to his authority.