Psaume 40:6-8

6 Éternel, mon Dieu, tu as multiplié tes merveilles et tes pensées en notre faveur; nul ne peut être comparé à toi. Veux-je les publier et les dire? Elles sont trop nombreuses pour les raconter.
7 Tu ne prends plaisir ni au sacrifice, ni à l'offrande; tu m'as percé les oreilles; tu ne demandes point d'holocauste, ni de sacrifice pour le péché.
8 Alors j'ai dit: Voici, je viens; il est écrit de moi dans le rouleau de ton livre.

Psaume 40:6-8 Meaning and Commentary

To the chief Musician, a Psalm of David. Jarchi interprets this psalm of the Israelites, and of their deliverance and song at the Red sea. The title of it, in the Syriac version, is, "A psalm of David according to the letter, when Shemaiah brought the names of those who minister in the house of the Lord;" see 1 Chronicles 24:6; according to Kimchi, the subject of this psalm is the same with that of the two preceding; and R. Obadiah thinks it was composed by David, when he was recovered of a leprosy; but though it might be written by David, it was not written concerning himself, or on his own account, but of another. The title of this psalm is somewhat different from others in the order of the words; whereas it is usually put "a psalm of," or "for David"; here it is, "for David, a psalm"; and may be rendered, as Ainsworth observes, "a psalm concerning David"; not literally, but typically understood; not concerning David himself, but concerning his antitype and son, who is called by his name, Ezekiel 37:24; and that it is to be interpreted of him is evident from the application of Psalm 39:6, unto him by the apostle in Hebrews 10:5; and the whole of it is applicable to him; some apply it to Jeremiah in the dungeon, and others to Daniel in the den, as Theodoret observes.
The Ostervald translation is in the public domain.