عَنْ أَبِي هُرَيْرَةَ رَضِيَ اللَّهُ عَنْهُ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ لَمْ تَحِلَّ الْغَنَائِمُ لِقَوْمٍ سُودِ الرُّءُوسِ قَبْلَكُمْ كَانَتْ تَنْزِلُ النَّارُ مِنَ السَّمَاءِ فَتَأْكُلُهَا كَانَ يَوْمَ بَدْرٍ أَسْرَعَ النَّاسُ فِي الْغَنَائِمِ فَأَنْزَلَ اللَّهُ عَزَّ وَجَلَّ لَوْلَا كِتَابٌ مِنَ اللَّهِ سَبَقَ لَمَسَّكُمْ فِيمَا أَخَذْتُمْ عَذَابٌ عَظِيمٌ فَكُلُوا مِمَّا غَنِمْتُمْ حَلَالًا طَيِّبًا [الأنفال: 68، 69]
It is narrated from Sayyiduna Abu Hurairah, may Allah be pleased with him, that the Messenger of Allah, peace and blessings be upon him, said: Spoils of war were not lawful for the black-haired people before you, that is, the children of Adam. Rather, it used to happen among them that fire would descend from the sky and consume the spoils. When, on the day of Badr, people hastened to acquire the spoils, Allah the Exalted revealed this verse: {لَوْلَا کِتَابٌ مِنَ اللّٰہِ سَبَقَ لَمَسَّکُمْ فِیمَا أَخَذْتُمْ عَذَابٌ عَظِیمٌ، فَکُلُوْا مِمَّا غَنِمْتُمْ حَلَالًا طَیِّبًا} If it had not been for a prior decree from Allah, a severe punishment would have afflicted you for what you took. So eat of the lawful and pure spoils you have obtained. (Surah Al-Anfal: 68, 69)