Sura Al-Anfal (Arabic: سورة الأنفال‎, Sūratu al-Anfāl, "The Spoils of War") is the eighth chapter of the Qur'an, with 75 verses. It is a Medinan sura, recorded after the Battle of Badr. It forms a pair with the next sura, At-Tawba.

Badr is also the subject of Sura 8: Al-Anfal, which details military conduct and operations. Though the Sura does not name Badr, it describes the battle several times:
“ Behold! Allah promised you one of the two (enemy) parties, that it should be yours: Ye wished that the one unarmed should be yours, but Allah willed to justify the Truth according to His words and to cut off the roots of the Unbelievers;- That He might justify Truth and prove Falsehood false, distasteful though it be to those in guilt. Remember ye implored the assistance of your Lord, and He answered you: "I will assist you with a thousand of the angels, ranks on ranks." Allah made it but a message of hope, and an assurance to your hearts: (in any case) there is no help except from Allah. and Allah is Exalted in Power, Wise. ([Qur'an 8:7]) ”

This was a reference to the pre-battle debate in the Muslim army over whether to pursue the caravan or fight the Meccan army.
“ Remember ye were on the hither side of the valley, and they on the farther side, and the caravan on lower ground than ye. Even if ye had made a mutual appointment to meet, ye would certainly have failed in the appointment: But (thus ye met), that Allah might accomplish a matter already enacted; that those who died might die after a clear Sign (had been given), and those who lived might live after a Clear Sign (had been given). And verily Allah is He Who heareth and knoweth (all things). Remember in thy dream Allah showed them to thee as few: if He had shown them to thee as many, ye would surely have been discouraged, and ye would surely have disputed in (your) decision; but Allah saved (you): for He knoweth well the (secrets) of (all) hearts. And remember when ye met, He showed them to you as few in your eyes, and He made you appear as contemptible in their eyes: that Allah might accomplish a matter already enacted. For to Allah do all questions go back (for decision). ([Qur'an 8:42]) ”
“ And be not like those who started from their homes insolently and to be seen of men, and to hinder (men) from the path of Allah. For Allah compasseth round about all that they do. Remember Satan made their (sinful) acts seem alluring to them, and said: "No one among men can overcome you this day, while I am near to you": But when the two forces came in sight of each other, he turned on his heels, and said: "Lo! I am clear of you; lo! I see what ye see not; Lo! I fear Allah. for Allah is strict in punishment. ([Qur'an 8:47]) ”

These verses highlighted both the chance encounter of the battle (both sides had blundered into each other) as well as the underestimation of both the size of Meccan army by the Muslims and the fierceness of the Muslim army by the Meccans. The Meccan army was described in the second verses, and "Satan" may be referring to Amr ibn Hisham, who was hated by the Muslims and allegedly pushed for the battle repeatedly.