4 Blessed is the man who makes the Lord his trust, who does not turn to the proud, to those who go astray after false gods! 5 Thou hast multiplied, O Lord my God, thy wondrous deeds and thy thoughts toward us; none can compare with thee! Were I to proclaim and tell of them, they would be more than can be numbered.

6 Sacrifice and offering thou dost not desire; but thou hast given me an open ear. Burnt offering and sin offering thou hast not required. 7 Then I said, "Lo, I come; in the roll of the book it is written of me; 8 I delight to do thy will, O my God; thy law is within 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.