1 Samuel 30:17-26

ISV(i) 17 David struck them down from twilight until the evening of the next day, and not one of them escaped except for 400 young men who mounted camels and fled. 18 David rescued everyone whom the Amalekites had captured, including his two wives. 19 Nothing of theirs was missing, whether small or large, sons or daughters, spoil, or anything that they had taken for themselves—David brought back everything. 20 David took all the rest of the sheep and cattle, driving them ahead of their rescued livestock. People said about all this, “This is David’s spoil.”
21 David Divides the SpoilDavid came to the 200 men who were too exhausted to follow him and who had been left at the Wadi Besor. They came out to meet David and the people who were with him. As David approached the people, he asked them how they were doing. 22 At this point, all the wicked and worthless men of the group who had gone with David answered, “Because they didn’t go with us, we won’t give them any of the spoil that we recovered, except that each person may take his wife and his children and go.”
23 David said, “No, you won’t do this, my brothers, with what the LORD has given us. He guarded us and gave the raiding party that came against us into our hand. 24 Who will listen to you in this matter? Indeed, the share of those who went down into battle and the share of those who stayed with the supplies will be the same. They’ll share alike.” 25 From that day forward he made it a statute and an ordinance for Israel, and it remains to this present day.
26 David Shares the Spoil with the People of JudahDavid came to Ziklag, and he sent some of the spoil to the elders of Judah, and to his friends, telling them, “Look, this is a gift for you from the spoil of the enemies of the LORD