I will extol you, O LORD, for you have drawn me up and have not let my foes rejoice over me.  O LORD my God, I cried to you for help, and you have healed me.  O LORD, you have brought up my soul from Sheol; you restored me to life from among those who go down to the pit.  Sing praises to the LORD, O you his saints, and give thanks to his holy name.  For his anger is but for a moment, and his favor is for a lifetime. Weeping may tarry for the night, but joy comes with the morning.  As for me, I said in my prosperity, “I shall never be moved.”  By your favor, O LORD, you made my mountain stand strong; you hid your face; I was dismayed.  To you, O LORD, I cry, and to the Lord I plead for mercy:  “What profit is there in my death, if I go down to the pit? Will the dust praise you? Will it tell of your faithfulness?  Hear, O LORD, and be merciful to me! O LORD, be my helper!”  You have turned for me my mourning into dancing; you have loosed my sackcloth and clothed me with gladness,  that my glory may sing your praise and not be silent. O LORD my God, I will give thanks to you forever! (Psalm 30 ESV)
Repentance in Joy
David repents of his arrogant self-confidence and begs God to mercifully intervene in his life. Don’t be surprised at this. David was a mighty warrior, but there is no warrior who will contend with the almighty. When we run after idols, we contend with the almighty like a 3 year old wrestling with a Navy Seal. In the end we will cry for mercy and that is God’s design. He will not be moved. He will not change his plans. He is after your worship and devotion and he will wreck anything that competes with him. The irony is that the end of that discipline is not our misery, but the mercy of God, ending in our joy. We were meant and made to work this way, and our lives will be restless until they find their rest in God.