[Machine] The Prophet ﷺ went out on the day of Badr with three hundred and fifteen fighters, just as Talut went out. The Messenger of Allah ﷺ prayed for them when he went out and said, "O Allah, they are barefoot, so protect them. O Allah, they are unclothed, so clothe them. O Allah, they are hungry, so feed them." So Allah opened up Badr for them, and they returned, and there was not a single man among them except that he had returned with a camel or two camels. They clothed themselves and were satisfied. Ash-Shafi'iﷲ said, "The spoils of Badr were as reported by Ubada bin As-Samit, the Muslims took them before the verse about the spoils in Surat Al-Anfal was revealed. But when they disputed over it, Allah snatched it from their hands with His statement: "They ask you about the spoils. Say, 'The spoils are for Allah and the Messenger.'" [Al-Anfal 1]
أَنَّ رَسُولَ اللهِ ﷺ خَرَجَ يَوْمَ بَدْرٍ بِثَلَاثِمِائَةٍ وَخَمْسَةَ عَشَرَ مِنَ الْمُقَاتِلَةِ كَمَا خَرَجَ طَالُوتُ فَدَعَا لَهُمْ رَسُولُ اللهِ ﷺ حِينَ خَرَجَ فَقَالَ اللهُمَّ إِنَّهُمْ حُفَاةٌ فَاحْمِلْهُمْ اللهُمَّ إِنَّهُمْ عُرَاةٌ فَاكْسُهُمْ اللهُمَّ إِنَّهُمْ جِيَاعٌ فَأَشْبِعْهُمْ فَفَتَحَ اللهُ لَهُمْ يَوْمَ بَدْرٍ فَانْقَلَبُوا وَمَا مِنْهُمْ رَجُلٌ إِلَّا وَقَدْ رَجَعَ بِجَمَلٍ أَوْ جَمَلَيْنِ وَاكْتَسَوْا وَشَبِعُوا قَالَ الشَّافِعِيُّ رَحِمَهُ اللهُ وَكَانَتْ غَنَائِمُ بَدْرٍ كَمَا رَوَى عُبَادَةُ بْنُ الصَّامِتِ غَنِمَهَا الْمُسْلِمُونَ قَبْلَ أَنْ تَنْزِلَ الْآيَةُ فِي سُورَةِ الْأَنْفَالِ فَلَمَّا تَشَاحُّوا عَلَيْهَا انْتَزَعَهَا اللهُ مِنْ أَيْدِيهِمْ بِقَوْلِهِ {يَسْأَلُونَكَ عَنِ الْأَنْفَالِ قُلِ الْأَنْفَالُ لِلَّهِ وَالرَّسُولِ} [الأنفال 1] الْآيَةَ