For the choir director: A psalm of David.
I waited patiently for the Lord to help me,
and he turned to me and heard my cry.
He lifted me out of the pit of despair,
out of the mud and the mire.
He set my feet on solid ground
and steadied me as I walked along.
He has given me a new song to sing,
a hymn of praise to our God.
Many will see what he has done and be amazed.
They will put their trust in the Lord.
Oh, the joys of those who trust the Lord,
who have no confidence in the proud
or in those who worship idols.
O Lord my God, you have performed many wonders for us.
Your plans for us are too numerous to list.
You have no equal.
If I tried to recite all your wonderful deeds,
I would never come to the end of them.
You take no delight in sacrifices or offerings.
Now that you have made me listen, I finally understand[a]—
you don’t require burnt offerings or sin offerings.
Then I said, “Look, I have come.
As is written about me in the Scriptures:
I take joy in doing your will, my God,
for your instructions are written on my heart.”