Amalekites Invade Ziklag and David Is Victorious
Having left the gathering of Philistine forces at Aphek, David and his troops march the 50 miles back south to Ziklag—about a two-day march, and they arrive the third day (verse 1). Upon returning, they find that the city has been invaded by the Amalekites. Why God has allowed this to happen is not revealed. Perhaps it is to bring further destruction upon the Amalekites. Perhaps it is to keep David from returning north to aid the Israelites against the Philistines. Whatever the case, God does allow it to happen and once again shows His mercy and power to David. Here's what we do know: 1) Instead of acting out of vengeance and anger, David appeals to God for an answer. 2) God delivers everything back to David—plus enough spoils to share with more than a dozen cities that David has frequented. 3) David's mercy is also evident as the spoils are shared with the men who were willing but not able to continue the journey to fight the Amalekites, to the dismay of others referred to as "wicked men" or, literally, "men of Belial."
Don't forget, when David was anointed to be the next king of Israel by Samuel, the Spirit of God came on him "from that day forward" (1 Samuel 16:13 1 Samuel 16:13Then Samuel took the horn of oil, and anointed him in the middle of his brothers: and the Spirit of the LORD came on David from that day forward. So Samuel rose up, and went to Ramah.
American King James Version×). As long as David stays close to God and appeals to Him, the fruit of that Spirit is evident. But there are also times, as with all of us, when David uses his own carnal reasoning (compare Romans 8:7 Romans 8:7Because the carnal mind is enmity against God: for it is not subject to the law of God, neither indeed can be.
American King James Version×). And as is also the case with all of us, he and many others suffer pain and futility due to such reasoning and the wrong actions that flow from it.
Through the ups and downs, good and evil, blessing and curses that we read of David, we can conclude David's ultimate destiny, not by our reasoning alone but through the inspired Word of God. It reveals that after the return of Jesus Christ to the earth, the people of Israel will once again be united as one nation, and David will be their king (Ezekiel 37:22-24 Ezekiel 37:22-24  And I will make them one nation in the land on the mountains of Israel; and one king shall be king to them all: and they shall be no more two nations, neither shall they be divided into two kingdoms any more at all.
 Neither shall they defile themselves any more with their idols, nor with their detestable things, nor with any of their transgressions: but I will save them out of all their dwelling places, wherein they have sinned, and will cleanse them: so shall they be my people, and I will be their God.
 And David my servant shall be king over them; and they all shall have one shepherd: they shall also walk in my judgments, and observe my statutes, and do them.
American King James Version×).