A man praises the Lord after God delivers him from sickness unto death; he asks others to join him in praises to God; he vows that he will praise the Lord his whole life long from now on; thanks will become habit.
To get to that point where I am continually thankful that God is life and everything good and I am nothing and ever close to death, one needs to be assailed by the last enemy, sickness and death, and turn to Jesus for rescue from the pit and look to him for overcoming.
This man needed to repent for the first sin: thinking that he didn’t need God, that he could do it himself, that his own efforts achieved. He repented: “I said In my prosperity, ‘I shall never be moved.'” Then the Lord healed him and drew him up from death’s door, after repentance, faith, and asking for mercy.
Joy comes in the morning; mourning is turned into dancing; clothes of gladness replace sackcloth; and the grace of the Lord makes my mountain stand strong. God does it all. Joy comes. What’s left for me but thanks and praise?