O LORD my God, I cried to You for help, and You healed me.
David had flatted himself too confidently in his prosperity, and security bred carelessness that God rightly chastised. When Absalom's rebellion was crushed and David returned to his throne, he dedicated his house with thanksgiving, confessing both his former false confidence and God's faithful discipline toward him.
AI summary
Commenting on Psalm 30:1-12
O Lord my God, I cried unto thee, and thou hast healed me. David sent up prayers for himself and for his people when visited with the pestilence. He went at once to head quarters, and not roundabout to fallible means. God is the best physician, even for our bodily infirmities. We do very wickedly and foolishly when we forget God.
It was the laudable practice of the pious Jews, and, though not expressly appointed, yet allowed and accepted, when they had built a new house, to dedicate it to God, Deu 20:5. David did so when his house was built, and he took possession of it (Sa2 5:11); for royal palaces do as much need God's protection, and are as much bound to be at his service, as ordinary houses.
Commenting on Psalm 30:1-5