1st Samuel 30:13 And David said unto him, To whom belongest thou? and whence art thou? And he said, I am a young man of Egypt, servant to an Amalekite; and my master left me, because three days agone I fell sick. 14 We made an invasion upon the south of the Cherethites, and upon the coast which belongeth to Judah, and upon the south of Caleb; and we burned Ziklag with fire.
[Patriarchs & Prophets pp 693] Advancing, they came upon an Egyptian slave apparently about to perish from weariness and hunger. Upon receiving food and drink, however, he revived, and they learned that he had been left to die by his cruel master, an Amalekite belonging to the invading force. He told the story of the raid and pillage; and then, having exacted a promise that he should not be slain or delivered to his master, he consented to lead David's company to the camp of their enemies.
As they came in sight of the encampment a scene of revelry met their gaze. The victorious host were holding high festival. “They were spread abroad upon all the earth, eating and drinking, and dancing, because of all the great spoil that they had taken out of the land of the Philistines, and out of the land of Judah.” An immediate attack was ordered, and the pursuers rushed fiercely upon their prey. The Amalekites were surprised and thrown into confusion. The battle was continued all that night and the following day, until nearly the entire host was slain.
Only a band of four hundred men, mounted upon camels, succeeded in making their escape. The word of the Lord was fulfilled. “David recovered all that the Amalekites had carried away: and David rescued his two wives. And there was nothing lacking to them, neither small nor great, neither sons nor daughters, neither spoil, nor anything that they had taken to them: David recovered all.”
1st Samuel 30:17 And David smote them from the twilight even unto the evening of the next day: and there escaped not a man of them, save four hundred young men, which rode upon camels, and fled.
May God add His blessing to the study of His word. "Good night" and God bless!