"I will not be afraid of ten thousands of the people That have set themselves against me round about." (ASV)
Have you ever had one of those days when it seems that the whole world is set against you? When nothing goes your way and you're ready to just throw in the towel?
King David, a king appointed by God Himself, had plenty of those days. His reign was rife with assassination attempts and uprisings against him. He had kings and princes after his hide. When he authored this Psalm, he was fleeing for his life. His own son, Absalom, was trying to kill him. What's more, Absalom had the armies of nations at his call! Israel and Judea sided with him, against David. This king was now living in the wilderness and hiding in caves.
Yet while all this was going on around him, David had peace. He knew who was really in charge of the situation. David had an answer for times of trouble. His life was threatened, his adversaries were many and powerful, "but David strengthened himself in Jehovah his God." (1 Samuel 30:6b ASV)
Despite all his failings, of which there were many, David was described as "a man after God's own Heart." He never stopped worshiping and loving his Lord, and he never forgot Who granted him his power and authority. Seventy-three of the Psalms bear David's name. His son, Solomon, was the wisest of Israel's kings. And it was his line that was chosen to bear the Messiah.
Clearly, David knew how to overcome difficulties. When the world was against him, he never forgot that God was on his side. Perhaps we all could learn a thing or two from this young shepherd who was appointed king.