The story behind Psalm 30:5
The psalm's heading calls it a song of David for the dedication of the house, so it is traditionally linked to David. The setting is debated: perhaps his palace, or preparations for the temple. The psalm itself tells a personal story. David felt secure in his success, then fell into serious trouble, possibly illness. He cried to God and was healed. He wrote this song to give public thanks and teach Israel how God deals with His people.