1 Samuel 30:17-26

17And David struck them down from twilight until the evening of the next day, and not a man of them escaped, except four hundred young men, who mounted camels and fled. 18 aDavid recovered all that the Amalekites had taken, and David rescued his two wives. 19Nothing was missing, whether small or great, sons or daughters, spoil or anything that had been taken. bDavid brought back all. 20David also captured all the flocks and herds, and the people drove the livestock before him,
The meaning of the Hebrew clause is uncertain
and said, “This is David’s spoil.”

21Then David came to dthe two hundred men who had been too exhausted to follow David, and who had been left eat the brook Besor. And they went out to meet David and to meet the people who were with him. And when David came near to the people he greeted them. 22Then all the wicked and worthless fellows among the men who had gone with David said, “Because they did not go with us, we will not give them any of the spoil that we have recovered, except that each man may lead away his wife and children, and depart.” 23But David said, “You shall not do so, my brothers, with what the Lord has given us. He has preserved us and given into our hand the band that came against us. 24Who would listen to you in this matter? fFor as his share is who goes down into the battle, so shall his share be who stays by the baggage. They shall share alike.” 25And he made it a statute and a rule for Israel from that day forward to this day.

26When David came to Ziklag, he sent part of the spoil to his friends, the elders of Judah, saying, “Here is a present for you from the spoil of the enemies of the Lord.”
Copyright information for ESV