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, 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. 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. Then David and the people who were with him lifted up their voices and wept, until they had no more power to weep. And David’s two wives, Ahinoam the Jezreelitess, and Abigail the widow of Nabal the Carmelite, had been taken captive. 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. Then David said to Abiathar the priest, Ahimelech’s son, “Please bring the ephod here to me.” And Abiathar brought the ephod to David. 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. ” So David went, he and the six hundred men who were with him, and came to the Brook Besor, where those stayed who were left behind. But David pursued, he and four hundred men; for two hundred stayed behind, who were so weary that they could not cross the Brook Besor. Then they found an Egyptian in the field, and brought him to David; and they gave him bread and he ate, and they let him drink water. And they gave him a piece of a cake of figs and two clusters of raisins. So when he had eaten, his strength came back to him; for he had eaten no bread nor drunk water for three days and three nights. Then David said to him, “To whom do you belong, and where are you from?” And he said, “I am a young man from Egypt, servant of an Amalekite; and my master left me behind, because three days ago I fell sick. We made an invasion of the southern area of the Cherethites, in the territory which belongs to Judah, and of the southern area of Caleb; and we burned Ziklag with fire.” And David said to him, “Can you take me down to this troop?” So he said, “Swear to me by God that you will neither kill me nor deliver me into the hands of my master, and I will take you down to this troop.” And when he had brought him down, there they were, spread out over all the land, eating and drinking and dancing, because of all the great spoil which they had taken from the land of the Philistines and from the land of Judah. Then David attacked them from twilight until the evening of the next day. Not a man of them escaped, except four hundred young men who rode on camels and fled. So David recovered all that the Amalekites had carried away, and David rescued his two wives. And nothing of theirs was lacking, either small or great, sons or daughters, spoil or anything which they had taken from them; David recovered all. Then David took all the flocks and herds they had driven before those other livestock, and said, “This is David’s spoil.” Now David came to the two hundred men who had been so weary that they could not follow David, whom they also had made to stay at the Brook Besor. So they went out to meet David and to meet the people who were with him. And when David came near the people, he greeted them. Then all the wicked and worthless men of those who went with David answered and said, “Because they did not go with us, we will not give them any of the spoil that we have recovered, except for every man’s wife and children, that they may lead them away and depart.” But David said, “My brethren, you shall not do so with what the Lord has given us, who has preserved us and delivered into our hand the troop that came against us. For who will heed you in this matter? But as his part is who goes down to the battle, so shall his part be who stays by the supplies; they shall share alike.” So it was, from that day forward; he made it a statute and an ordinance for Israel to this day.
I Samuel 30:1-25 NKJV