Chapter: Explanation of how the spoils of war were spent at the beginning of Islam, and that they belonged to the Messenger of Allah (peace and blessings be upon him), who would give them to whomever he saw fit among those who took part in the battle and those who did not, until the saying of Allah, the Mighty and Majestic, was revealed: "And know that whatever you take as spoils of war, one fifth of it is for Allah, for the Messenger, for (the Messenger's) relatives, the orphans, the needy and the wayfarer" [Surah al-Anfal: 41].
So the khums (one fifth) went to those entitled to the khums, and its (remaining) four parts to those who took part in the battle.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قسم الفيء والغنيمة / Q12710