David had repeated encounters of having his enemies on all sides. He had been surrounded by danger. He knew tragedy. And David knew the depths of great sorrow over his own sin and the grief over the weight of the consequences birthed from those sins. And yet, he could write this psalm with great confidence!
“The Lord will perfect that which concerns me.Your mercy and loving-kindness, O Lord, endure forever -forsake not the works of Your own hands” Psalm 138:8