Psalm 30 is possibly David’s dedication to God for the future construction of the temple, since its title says: “Psalm singing in the dedication of the house”. Although it should be noted that the Psalm never mentions anything about the temple or its construction, which Solomon would build.
Regardless of who and what the psalm was written for, we must bear in mind that God is the one who turns our lament into dance and puts a praise on our lips.
There is a song based on this psalm that says as follows:
Thou hast turned my mourning into dancing for me;
Thou hast put off my sackcloth;
Thou hast turned my mourning into dancing for me,
And girded me with gladness;
To the end my glory may sing praise unto Thee,
And not be silent.
O Lord my God, I will give thanks unto Thee forever.
Now let’s see what the psalmist says in his last three verses of this great psalm:
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.
Why do we sing to God? The psalmist says that he sings to Him because God has changed his lament in dance and removed his sadness and turned it into joy. O beloved brothers, we can sing in the same way, since God is the one who in the midst of our pain makes us smile, and be completely at peace.
Oh glory of the heights, oh my glory, oh God of my soul, we thank you, for your love which is perpetual, for your grace which has no limits, for your mercy, yes, for that mercy you have had for with us.
And for all that God has done for us we will not be silent, but we will say like this psalm: “O Lord my God, I will give thanks unto thee for ever”.