Sayyiduna Abdullah bin Amr (may Allah be pleased with them both) says that the Messenger of Allah (peace and blessings be upon him) set out on the day of Badr with three hundred and fifteen men. The Messenger of Allah (peace and blessings be upon him) said: "O Allah! They are barefoot, so give them mounts. O Allah! They are unclothed, so clothe them. O Allah! They are hungry, so fill them." So Allah Almighty granted him (peace and blessings be upon him) victory on the day of Badr, and when they returned, there was not a man among them who did not return with a camel or two camels, and they were clothed and well fed.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب قسم الفيء والغنيمة / 12758