Lessons learned in the furnace of affliction often get etched deeply into our hearts and lives.
David learned a lesson in his hard times. That lesson was that life must be lived on purpose for God. Coasting, going along with the flow and living carelessly always leads to wasted life. David wanted to place and keep his trust in the Lord.