A Psalm and Song at the dedication of the house of David.
1 I will extol thee, O LORD; for thou hast lifted me up, and hast not made my foes to rejoice over me.
2 O LORD my God, I cried unto thee, and thou hast healed me.
3 O LORD, thou hast brought up my soul from the grave: thou hast kept me alive, that I should not go down to the pit.
4 Sing unto the LORD, O ye saints of his, and give thanks at the remembrance of his holiness.
5 For his anger endureth but a moment; in his favour is life: weeping may endure for a night, but joy cometh in the morning.

6 And in my prosperity I said, I shall never be moved.
7 LORD, by thy favour thou hast made my mountain to stand strong: thou didst hide thy face, and I was troubled.
8 I cried to thee, O LORD; and unto the LORD I made supplication.
9 What profit is there in my blood, when I go down to the pit? Shall the dust praise thee? shall it declare thy truth?
10 Hear, O LORD, and have mercy upon me: LORD, be thou my helper.
11 Thou hast turned for me my mourning into dancing: thou hast put off my sackcloth, and girded me with gladness;
12 To the end that my glory may sing praise to thee, and not be silent. O LORD my God, I will give thanks unto thee for ever.
A Prayer of Thanksgiving
1 I praise you, Lord, because you have saved me
and kept my enemies from gloating over me.
2 I cried to you for help, O Lord my God,
and you healed me;
3 you kept me from the grave.
I was on my way to the depths below,
but you restored my life.

4 Sing praise to the Lord,
all his faithful people!
Remember what the Holy One has done,
and give him thanks!
5 His anger lasts only a moment,
his goodness for a lifetime.
Tears may flow in the night,
but joy comes in the morning.

6 I felt secure and said to myself,
“I will never be defeated.”
7 You were good to me, Lord;
you protected me like a mountain fortress.
But then you hid yourself from me,
and I was afraid.

8 I called to you, Lord;
I begged for your help:
9 “What will you gain from my death?
What profit from my going to the grave?
Are dead people able to praise you?
Can they proclaim your unfailing goodness?
10 Hear me, Lord, and be merciful!
Help me, Lord!”

11 You have changed my sadness into a joyful dance;
you have taken away my sorrow
and surrounded me with joy.
12 So I will not be silent;
I will sing praise to you.
Lord, you are my God;
I will give you thanks forever.