From Psalm 57:
When David was in the back of the cave, in the dark, he cries out to God with strong faith: God shall send forth his mercy and his truth (vs. 3). He praises God from the recesses of the cave: Be Thou exalted, O God, above the heavens; let thy glory be above all the earth (vs. 5). When David is under a cloud of trouble, he trusts in God and makes his refuge in another shadow: in the shadow of thy wings (vs. 1). Praise begins before deliverance. Praise begins in the midst of trouble. Trouble reveals in whom we put our trust. David has resolve; his heart is fixed (vs. 7). He is anchored and steady, so he sings and gives praise, waking up the dawn with his psaltery and harp (vs. 8). Troubles are God’s ordinary means of teaching His people, so we can seek His glory and exalt His name, trusting Him even as our troubles approach….always and for everything giving thanks.