Psalms 40:7-9

Verse 7

In the volume of the book - במגלת ספר bimegillath sepher, "in the roll of the book." Anciently, books were written on skins, and rolled up. Among the Romans, these were called volumina, from volvo, I roll; and the Pentateuch in the Jewish synagogues is still written in this way. There are two wooden rollers; on one they roll on, on the other they roll off, as they proceed in reading. One now lying before me, written on vellum, is two feet two inches in breadth and one hundred and two feet long. To roll and unroll such a MS. was no easy task, and to be managed must lie flat on a table. This contains the Pentateuch only, and is without points, or any other Masoretic distinction. The book mentioned here must be the Pentateuch, or five books of Moses; for, in David's time no other part of Divine revelation had been committed to writing. This whole book speaks about Christ, and his accomplishing the will of God, not only in "the seed of the woman shall bruise the head of the serpent," and "in thy seed shall all the nations of the earth be blessed;" but in all the sacrifices and sacrificial rites mentioned in the law.
Verse 8

To do thy will - God willed not the sacrifices under the law, but he willed that a human victim of infinite merit should be offered for the redemption of mankind. That there might be such a victim, a body was prepared for the eternal Logos, and in that body he came to do the will of God; that is, to suffer and die for the sins of the world.

1. Hence we see that the sovereign Will of God is that Jesus should be incarnated; that he should suffer and die; or, in the apostle's words, taste death for every man; that all should believe on him, and be saved from their sins; for this is the Will of God, our sanctification.

2. And as the apostle grounds this on the words of the Psalm, we see that it is the Will of God that that system shall end; for as the essence of it is contained in its sacrifices, and God says he will not have these, and has appointed the Messiah to do his will, i.e., to die for men, hence it necessarily follows, from the psalmist himself, that the introduction of the Messiah into the world is the abolition of the law; and that his sacrifice is that which shall last for ever.
Verse 9

I have preached righteousness - I think it best to refer these words to Christ and his apostles. In consequence of his having become a sacrifice for sin, the Jewish sacrificial system being ended, the middle wall of partition was broken down, and the door of faith, the doctrine of justification by faith, opened to the Gentiles. Hence the Gospel was preached in all the world, and the mercy of God made known to the Gentiles; and thus righteousness - justification by faith, was preached in the great congregation - to Jews and Gentiles, throughout the Roman empire.

The great congregation, both in this and the following verse, I think, means the Gentiles, contradistinguished from the Jews.

The word righteousness means the plan or method of salvation by Jesus Christ - God's method of justifying sinners by faith, without the deeds of the law. See Rom 3:25-26 (note), and the notes there.
Copyright information for Clarke