Anas bin Malik reported,

Abu Jahl said, "Allah, if this is truly the truth from You, then rain down stones upon us from the sky or bring us a painful punishment."So the verse was revealed, "But Allah would not punish them while you are among them, nor would Allah punish them while they seek forgiveness. But why should Allah not punish them while they bar people from the Sacred Mosque" [Anfal 8:33–34], to the end of the verse.

Muslim 7064

Sahih

حدثنا عبيد الله بن معاذ العنبري حدثنا أبي حدثنا شعبة عن عبد الحميد الزيادي أنه

سمع أنس بن مالك يقول

ا قال أبو جهل اللهم إن كان هذا هو الحق من عندك فأمطر علينا حجارة من السماء أو ائتنا بعذاب أليم فنزلت {وما كان الله ليعذبهم وأنت فيهم وما كان الله معذبهم وهم يستغفرون وما لهم ألا يعذبهم الله وهم يصدون عن المسجد الحرام} إلى آخر الآية

مسلم 7064صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Description of the Resurrection, Paradise, and Hellfire
Chapter
His saying, "And Allah would not punish them while you are among them"
Numbering
Darussalam 7064
Muslim 7064