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 astounded. 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 done many miracles for us. Your plans for us are too numerous to list. 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 -- you don't require burnt offerings or sin offerings.
Then I said, "Look, I have come. And this has been written about me in your scroll:
I take joy in doing your will, my God, for your law is written on my heart."
I have told all your people about your justice. I have not been afraid to speak out, as you, O LORD, well know.