1 Samuel 30:16-31 - David Defeats The Amalekites

16 And when he had brought him: see, they lay scattered abroad upon the earth, eating and drinking and triumphing over all the great prey that they had carried away out of the land of the Philistines, and out of the land of Judah. 17 And David laid upon them from the twilight until the evening on the morrow: so that there escaped not a man, save four hundred young men which rode away upon camels and fled.

18 And David recovered all the Amalekites had carried away, and his two wives: 19 so that there was no person lacking, small or great, son or daughter, or of the spoil of all that they had taken away - David brought all again. 20 And David took all the sheep, and the oxen. And they drave the cattle before, and said, "This is David's prey."

21 And then David came to the two hundred men that were too weary for to follow David which they made to abide at the river Besor. And they came to meet David and the people that were with him. And when David came to the people, he saluted them. 22 Then answered all the wicked and the unthrifty of the men that went with David, and said, "Because they went not with us, therefore shall none of the prey that we have recovered be given unto them, save to every man his wife and his children: which let them carry away and be walking."

23 Then said David, "Ye shall not do so, my brethren, with that the LORD hath given us, and hath preserved us, and delivered the company that came against us, into our hands. 24 For who should hearken unto you in this matter? But as his part is that goeth and fighteth, so good shall his part be that tarrieth by the stuff: they shall part it alike." 25 And so from that day forward was that made a law and a custom in Israel, and endureth to this day.

26 When David came to Ziklag, he sent of his prey unto the elders of Judah and to his friends, saying, "See there a blessing for you, of the spoil of the enemies of the LORD." 27 He sent to them of Bethel; to them of south Ramah; to them of Jattir; 28 to them of Aroer; to them of Siphmoth; to them of Eshtemoa; 29 to them of Racal; to them of the cities of the Jerahmeelites; to them of the cities of the Kenites; 30 to them of Hormah; to them of Borashan; to them of Athach; 31 to them of Hebron, and to all places where David and his men were wont to haunt.