[Machine] The Messenger of Allah ﷺ said, "The spoils of war were not permissible for a people with black heads before you. It used to be collected and then fire would descend from the sky and consume them. But on the day of Badr, the people were hasty in taking the spoils of war, so Allah revealed, 'Had it not been for a decree from Allah that had already gone forth, surely, a severe torment would have touched you for what you took.' [Quran 8:68] 'So eat of what you have gained of war booty, lawful and good.' [Quran 8:69] The wording is narrated by Abu Mu'awiyah, and in another narration by Mu'hadir, and it was when they were hasty in taking the spoils of war before it was made permissible for them. So Allah revealed this and added to it.
قَالَ رَسُولُ اللهِ ﷺ لَمْ تَحِلَّ الْغَنَائِمُ لِقَوْمٍ سُودِ الرُّءُوسِ قَبْلَكُمْ كَانَتْ تُجْمَعُ فَتَنْزِلُ نَارٌ مِنَ السَّمَاءِ فَتَأْكُلُهَا فَلَمَّا كَانَ يَوْمُ بَدْرٍ أَسْرَعَ النَّاسُ فِي الْغَنَائِمِ فَأَنْزَلَ اللهُ ﷻ {لَوْلَا كِتَابٌ مِنَ اللهِ سَبَقَ لَمَسَّكُمْ فِيمَا أَخَذْتُمْ عَذَابٌ عَظِيمٌ} [الأنفال 68] {فَكُلُوا مِمَّا غَنِمْتُمْ حَلَالًا طَيِّبًا} [الأنفال 69] لَفْظُ حَدِيثِ أَبِي مُعَاوِيَةَ وَفِي رِوَايَةِ مُحَاضِرٍ وَأَنّهُ لَمَّا كَانَ يَوْمُ بَدْرٍ أَغَارُوا فِيهَا قَبْلَ أَنْ تَحِلَّ لَهُمْ فَأَنْزَلَ اللهُ ﷻ وَزَادَ فِي آخِرِهِ فَأُحِلَّتْ لَهُمْ وَالْبَاقِي بِمَعْنَاهُ