Imam al-Shafi'i (may Allah have mercy on him) says: I learned from most of the people of knowledge whom I have met that Abu Bakr (may Allah be pleased with him) said: "The spoils belong to those who were present at the battle."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب السير / 17951