And David took all the flocks - He and his men not only recovered all their own property, but they recovered all the spoil which these Amalekites had taken from the south of Judah, the Cherethites, and the south of Caleb. When this was separated from the rest, it was given to David, and called David's spoil.
The meaning is, “and David took all the sheep and oxen which the Amalekites drove” (i. e. had in their possession) “before that acquisition of cattle” (namely, before what they took in their raid to the south), “and they” (the people) “said, This is David‘s spoil.” This was his share as captain of the band (compare Judges 8:24-26). All the other plunder of the camp - arms, ornaments, jewels, money, clothes, camels, accoutrements, and so on - was divided among the little army. David‘s motive in choosing the sheep and oxen for himself was to make presents to his friends in Judah 1 Samuel 30:26-31.