"Blessed be the Lord! For he has heard the voice of my pleas for mercy. The Lord is my strength and my shield; in him my heart trusts, and I am helped; my heart exults, and with my song I give thanks to him." Psalm 28:6-7 ESV
In Psalm 28, David is being pursued by enemies and in imminent danger of death. The passage doesn't say, but it's reasonable to assume he was not taking this passively, David was a man of action. We can be reasonably sure he was considering military options for survival. While he was making his plans, he was also praying for deliverance (verse 2), "Hear the voice of my pleas for mercy." God heard and answered his pleas (verse 6), and David responds with a joyful heart of thanks and song.
There are two lessons I think we can take from this passage. First, in making our plans include God. Pray for his direction and guidance, God's plans may well be different from ours. We need to place our trust and reliance in God that has delivered us time after time, over what we think is best. Second, is how we respond to answered prayers. We need to not only give thanks but do it with great joy. To God, be all the glory and praise! If our plans happen to work, it is only because of Him
God, we give you thanks for deliverance in our times of distress. Forgive us the times we put our plans ahead of yours, and also, for the times, we do not show our thanks as we should. Help us we pray to always to seek your guidance. In Jesus' name. Amen.