And David was greatly distressed; for the people spake of stoning him, because the soul of all the people was grieved, every man for his sons and for his daughters: but David encouraged himself in the Lord his God.
1 Samuel 30:6 KJV

An important "but" in our lives. A necessary one. Today, we have more than David had -
a better covenant
complete Bible
unrestricted access to His presence
other benefits of the new covenant.

In the face of difficulties and apparent hopelessness, we should turn our attention to the all wise, all powerful and all knowing. And He cares. The end will be good.

Psalm 34:5 KJV
[5] They looked unto him, and were lightened: and their faces were not ashamed.

Psalm 34:5 NLT
[5] Those who look to him for help will be radiant with joy; no shadow of shame will darken their faces.