Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:4645Muḥammad b. ʿAbd al-Raḥīm > Saʿīd b. Sulaymān > Hushaym > Abū Bishr > Saʿīd b. Jubayr > Ibn ʿAbbās Sūrah al-Anfāl

I asked Ibn ʿAbbas regarding Surat-al-Anfal. He said, "It was revealed in connection with the Battle of Badr."  

البخاري:٤٦٤٥حَدَّثَنِي مُحَمَّدُ بْنُ عَبْدِ الرَّحِيمِ حَدَّثَنَا سَعِيدُ بْنُ سُلَيْمَانَ أَخْبَرَنَا هُشَيْمٌ أَخْبَرَنَا أَبُو بِشْرٍ عَنْ سَعِيدِ بْنِ جُبَيْرٍ قَالَ

قُلْتُ لاِبْنِ عَبَّاسٍ ؓ سُورَةُ الأَنْفَالِ قَالَ نَزَلَتْ فِي بَدْرٍ الشَّوْكَةُ الْحَدُّ {مُرْدَفِينَ} فَوْجًا بَعْدَ فَوْجٍ رَدِفَنِي وَأَرْدَفَنِي جَاءَ بَعْدِي {ذُوقُوا} بَاشِرُوا وَجَرِّبُوا وَلَيْسَ هَذَا مِنْ ذَوْقِ الْفَمِ {فَيَرْكُمَهُ} يَجْمَعُهُ {شَرِّدْ} فَرِّقْ {وَإِنْ جَنَحُوا} طَلَبُوا {يُثْخِنَ} يَغْلِبَ وَقَالَ مُجَاهِدٌ {مُكَاءً} إِدْخَالُ أَصَابِعِهِمْ فِي أَفْوَاهِهِمْ وَ{تَصْدِيَةً} الصَّفِيرُ {لِيُثْبِتُوكَ} لِيَحْبِسُوكَ