1 Samuel 30:15-25

15 And David said to him, "Will you take me down to this band?" And he said, "Swear to me by God, that you will not kill me, or deliver me into the hands of my master, and I will take you down to this band."
16 And when he had taken him down, behold, they were spread abroad over all the land, eating and drinking and dancing, because of all the great spoil they had taken from the land of the Philistines and from the land of Judah.
17 And David smote them 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 David recovered all that the Amal'ekites had taken; and David rescued his two wives.
19 Nothing was missing, whether small or great, sons or daughters, spoil or anything that had been taken; David brought back all.
20 David also captured all the flocks and herds; and the people drove those cattle before him, and said, "This is David's spoil."
21 Then David came to the two hundred men, who had been too exhausted to follow David, and who had been left at the brook Besor; and they went out to meet David and to meet the people who were with him; and when David drew near to the people he saluted them.
22 Then all the wicked and base 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 which we have recovered, except that each man may lead away his wife and children, and depart."
23 But 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.
24 Who would listen to you in this matter? For as his share is who goes down into the battle, so shall his share be who stays by the baggage; they shall share alike."
25 And from that day forward he made it a statute and an ordinance for Israel to this day.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.