He brought me up also out of an horrible pit, out of the miry clay, and set my feet upon a rock, and established my goings.
Pit — Desperate dangers and calamities.
Rock — A place of strength and safety.
Established — Kept me from falling into mischief.
 And he hath put a new song in my mouth, even praise unto our God: many shall see it, and fear, and shall trust in the LORD.
And fear — Shall stand in awe of that God, whom they see to have so great power, either to save or to destroy.
 Blessed is that man that maketh the LORD his trust, and respecteth not the proud, nor such as turn aside to lies.
The proud — Or, the mighty, the great and proud potentates of the world, to whom most men are apt to look and trust.
Turn — From God, in whom alone they ought to trust.
To lies — To lying vanities, such as worldly power and wisdom, and riches, and all other earthly things, or persons, in which men are prone to trust: which are called lies, because they promise more than they perform.
 Many, O LORD my God, are thy wonderful works which thou hast done, and thy thoughts which are to us-ward: they cannot be reckoned up in order unto thee: if I would declare and speak of them, they are more than can be numbered.
Many — This verse seems to be interposed as a wall of partition, between that which David speaks in his own person, and that which he speaks in the person of the Messiah, in the following verses.
 Sacrifice and offering thou didst not desire; mine ears hast thou opened: burnt offering and sin offering hast thou not required.
Sacrifice — These and the following words, may in an improper sense belong to the time of David; when God might be said, not to desire or require legal sacrifices comparatively. Thou didst desire obedience rather than sacrifices, but in a proper sense, they belong only to the person and times of the Messiah, and so the sense is, God did not desire or require them, for the satisfaction of his own justice, and the expiation of mens sins, which could not possibly be done by the blood of bulls or goats, but only by the blood of Christ, which was typified by them, and which Christ came into the world to shed, in pursuance of his father's will, as it here follows, verse 7,8. So here is a prediction concerning the cessation of the legal sacrifice, and the substitution of a better instead of them.
Opened — Heb. bored. I have devoted myself to thy perpetual service, and thou hast accepted of me as such, and signified so much by the boring of mine ears, according to the law and custom in that case, Exodus 21:5,6. The seventy Jewish interpreters, whom the apostle follows, Hebrews 10:5, translate these words, a body hast thou prepared me.
 Then said I, Lo, I come: in the volume of the book it is written of me,
Them — These words literally and truly belong to Christ, and the sense is this; seeing thou requirest a better sacrifice than those of the law, lo, I offer myself to come, and I will in due time come, into the world, as this phrase is explained in divers places of scripture, and particularly Hebrews 10:5, where this place is expressly applied to Christ.
Volume — These two words, volume and book are used of any writing, and both express the same thing. Now this volume of the book is the law of Moses, which is commonly and emphatically called the book, and was made up in the form of a roll or volume, as the Hebrew books generally were. And so this place manifestly points to Christ, concerning whom much is said in the books of Moses.
 I delight to do thy will, O my God: yea, thy law is within my heart.
I delight — This is eminently true, of Christ, and is here observed as an act of heroic obedience, that he not only resolved to do, but delighted in doing the will of God, or what God had commanded him, which was to die, and that a most shameful, and painful, and cursed death.
My heart — I do not only understand it, but receive it with heartiest love, delighting both to meditate of it, and to yield obedience to it.
 I have preached righteousness in the great congregation: lo, I have not refrained my lips, O LORD, thou knowest.
Righteousness — Thy faithfulness.
Great congregation — In the most public and solemn assemblies: not only to the Jews, but also to all nations; to whom Christ preached by his apostles, as is observed Ephesians 2:17.
Not refrained — From preaching it, even to the face of mine enemies.
 Withhold not thou thy tender mercies from me, O LORD: let thy lovingkindness and thy truth continually preserve me.
With-hold not — David, having been transported by the spirit of God to the commemoration of the great mystery of the Messiah, he now seems to be led back by the same spirit, to the consideration of his own case.
 For innumerable evils have compassed me about: mine iniquities have taken hold upon me, so that I am not able to look up; they are more than the hairs of mine head: therefore my heart faileth me.
Taken hold — Mens sins are figuratively said to take hold of them, as an officer takes hold of a man whom he arrests.
To look — Unto God or men, with any comfort: I am ashamed and confounded.
 Let them be desolate for a reward of their shame that say unto me, Aha, aha.
Shame — Their sinful and shameful actions.