You can read about this incident in 1 Samuel 21. David did not passively sit and wait for God to do things. David used his wits to escape from Gath. He used his wits too to write this acrostic psalm. David gives the glory to the Lord, not to his wits!
“Oh, taste and see that the LORD is good! Blessed is the man who takes refuge in him!” v8
David is bursting with the wonderful knowledge of God’s goodness. To him, to His people then, and to us throughout all the ages.
This is what we grasp hold of, and chew over. Taste and see! See what? That the Lord is good!
There is no talk of false prosperity doctrine here in what David is saying, “… But those who seek the LORD lack no good thing.”
David is clear in v19, “Many are the afflictions of the righteous,”
Here we see again these two seemingly (from some perspectives) incompatible statements.
That God’s people lack no good thing. And many are the afflictions of God’s people.
It’s v8 that holds the key.
God is good! He is the source of good and truth, of grace and mercy. Good things, all of them, come from Him!
And like an outcropping of rock on a mountain in the middle of a raging storm, we are blessed to take refuge in Him!
The blessings are the good things.
And foremost among them is the Lord’s saving us. V18, v19, v20 and v22 all point to this.
Praise God for the blessings He gives us!