I asked Ibn ʿAbbas about Surat Al-Tauba, and he said, "Surat Al-Tauba? It is exposure (of all the evils of the infidels and the hypocrites). And it continued revealing (that the oft-repeated expression): '...and of them ...and of them.' till they started thinking that none would be left unmentioned therein." I said, "What about) Surat Al-Anfal?" He replied, "Surat Al-Anfal was revealed in connection with the Badr Battle." I said, "(What about) Surat Al-Hashr?" He replied, "It was revealed in connection with Bani an-Nadir."
التَّوْبَةُ هِيَ الْفَاضِحَةُ مَا زَالَتْ تَنْزِلُ وَمِنْهُمْ وَمِنْهُمْ حَتَّى ظَنُّوا أَنَّهَا لَمْ تُبْقِ أَحَدًا مِنْهُمْ إِلاَّ ذُكِرَ فِيهَا قَالَ قُلْتُ سُورَةُ الأَنْفَالِ قَالَ نَزَلَتْ فِي بَدْرٍ قَالَ قُلْتُ سُورَةُ الْحَشْرِ قَالَ نَزَلَتْ فِي بَنِي النَّضِيرِ