1 Samuel 30:1-8
30:1-2 Amalekites raided Ziklag and took all who lived there captive.
30:3 When David and his men came to Ziklag, they found it destroyed by fire and their wives and sons and daughters taken captive.
30:4 So David and his men wept aloud until they had no strength left to weep.
30:5 David’s two wives taken captive by the Amalekites.
30:6 David was greatly distressed because the men [Amalekite raid shook their confidence in David] were talking of stoning him [likely that David’s previous assaults on Amalekites (27:8) incited their wrath and desire for vengeance]; each one was bitter in spirit because of his sons and daughters [perhaps upset that David had taken all his troops to Aphek (29:1-2) thus leaving Ziklag unprotected]. But [instead of despairing] David found strength in the LORD his God [Ps. 25:16-17 seem to describe what David must have felt at this time].
30:7 David turned to Abiathar the priest in order to seek an answer.
30:8 and David inquired of the LORD, “Shall I pursue this [Amalekite] raiding party? Will I overtake them?” “Pursue them,” he answered. “You will certainly overtake them and succeed in the rescue.”
1 Samuel 30:17-19
30:17 David fought them [Amalekites] from dusk until the evening of the next day, and none of them got away, except four hundred young men who rode off on camels and fled.
30:18 David recovered everything the Amalekites had taken, including his two wives.
30:19 Nothing was missing: young or old, boy or girl, plunder or anything else they had taken. David brought everything back.