David
Psalm 40:3ESV·traditional attribution

He put a new song in my mouth, a song of praise to our God. Many will see and fear, and put their trust in the LORD.

John Calvin Reformed @genevareformer

PSALM 40 David, being delivered from some great danger, and it may be, not from one only, but from many, extols very highly the grace of God, and by means of this, his soul is filled with admiration of the providence of God, which extends itself to the whole human race.

Commenting on Psalm 40:1-17

C.H. Spurgeon Reformed Baptist @princeofpreachers

And he hath put a new song in my mouth, even praise unto our God. At the passover, before his passion, our Lord sang one of the grand old Psalms of praise; but what is the music of his heart now, in the midst of his redeemed! What a song is that in which his glad heart for ever leads the chorus of the elect!

Matthew Henry Presbyterian @wholebiblehenry

In these verses we have, I. The great distress and trouble that the psalmist had been in. He had been plunged into a horrible pit and into miry clay (Psa 40:2), out of which he could not work himself, and in which he found himself sinking yet further.

Commenting on Psalm 40:1-5