It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that he said: "On the day of the Battle of Badr, the people hastened to the spoils of war and gathered them up. Then the Messenger of Allah (peace and blessings be upon him) said: 'Indeed, the spoils of war have not been made lawful for any human being (of the black-headed ones) other than you (the Ummah of Muhammad).' In the time of the earlier prophets the rule was that when people gained spoils of war, they would gather them in one place, and then fire would come down from the sky and consume them. Then Allah, the Mighty and Majestic, revealed this verse: 'Were it not for a decree from Allah that had already gone forth' (to the end of the next two verses)." The narrators of the chain of this hadith are thiqat (trustworthy).
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب سيرة سيدنا رسول الله صلى الله عليه وسلم / 4557