1 Now it happened, when David and his men came to Ziklag,
on the third day, that the Amalekites had invaded the South and Ziklag,
attacked Ziklag and burned it with fire,
2 and had taken captive the women and those who were
there, from small to great; they did not kill anyone, but carried them away and
went their way.
3 So David and his men came to the city, and there it
was, burned with fire; and their wives, their sons, and their daughters had
been taken captive.
4 Then David and the people who were with him lifted up
their voices and wept, until they had no more power to weep.
5 And David's two wives, Ahinoam the Jezreelitess, and
Abigail the widow of Nabal the Carmelite, had been taken captive.
6 Now David was greatly distressed, for the people spoke
of stoning him, because the soul of all the people was grieved, every man for
his sons and his daughters. But David strengthened himself in the LORD his God.
7 Then David said to Abiathar the priest, Ahimelech's
son, "Please bring the ephod here to me." And Abiathar brought the
ephod to David.
8 So David inquired of the LORD, saying, "Shall I
pursue this troop? Shall I overtake them?" And He answered him,
"Pursue, for you shall surely overtake them and without fail recover
all."
1 Samuel 30:1-8
(NKJV)
Earlier the Bible explains: “And David said in his heart, ‘Now I shall perish someday by the hand of Saul. There is nothing better for me than that I should speedily escape to the land of the Philistines; and Saul will despair of me, to seek me anymore in any part of Israel. So I shall escape out of his hand.’" (1 Samuel 27:7, NKJV) Out of fear and without seeking God's guidance, David decided to join the Philistines, enemies of Israel. Instead of remaining in Judah where God had told him to stay (1 Samuel 22:5), David fled there and followed his own ill-conceived plan.
Yet after the tragedy in Ziklag, David came to his senses. Once again, David remembered that God was his strength (v. 6) and once again, David turned to God, seeking His wisdom and help (v. 7-8) And God graciously assured David that He would be with them and bring about their victory.
Even though he made many mistakes, David was a man after God’s own heart (Acts 13:22) because he always returned to God and trusted Him. Sometimes God will allow difficulties in our lives to get our attention when we’ve blundered or strayed so we will turn back to Him. When we do, He is gracious and welcomes us back.