Abu Hurairah reported,

The Messenger of Allah ﷺ said, "War spoils were not lawful for any black-haired people before you. Fire would descend from the sky and consume them. On the day of Badr, the people hastened to take the spoils, so Allah عز وجل revealed, 'Had there not been a prior decree from Allah, a great punishment would have afflicted you for what you took. So enjoy what you have gained of spoils, lawful and good, and fear Allah. Indeed, Allah is Forgiving and Merciful' [Anfal 8:68–69]."

Azami 12416

Sahih

عن أبي هريرة، قال

قال رسول الله ﷺ: لم تحل الغنائم لقوم سود الرؤوس قبلكم، كانت تنزل النار من السماء، فتأكلها، فلما كان يوم بدر أسرع الناس في الغنائم، فأنزل الله عز وجل: {لولا كتب من الله سبق لمسكم فيما أخذتم عذاب عظيم فكلوا مما غنمتم حللا طيبا واتقوا الله إن الله غفور رحيم}

الأعظمي 12416صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "If some good comes to them, they say, this is from Allah, and if some evil befalls them, they say, this is from you. Say, all is from Allah"
Numbering
Jami al-Kamil 12416 (2nd edition)
Azami 12416