Masruq reported,

I visited Abdullah, and he said, "Part of knowledge is to say, about what you do not know, 'Allah knows best.' Allah said to His Prophet ﷺ, "Say, I ask of you no payment for it, nor am I one to pretend what I am not" [Sad 38:86].When the Quraysh overpowered the Prophet ﷺ and refused to obey him, he prayed, "Allah, help me against them with seven years like the seven years of Yusuf."So a year of famine seized them in which they ate bones and carrion out of sheer desperation, until a man would look up and see something like smoke between himself and the sky from hunger. They cried out, "Our Lord, remove from us the torment, we are believers" [Dukhan 44:12].It was said to him, "If We lift it from them, they will go back to their ways."He prayed to his Lord, and it was lifted from them, and they went back to their ways. So Allah took vengeance on them at Badr. That is the meaning of His words, "So watch for the day when the sky will bring a visible smoke" [Dukhan 44:10], down to His words, exalted be His remembrance, "We will indeed take vengeance" [Dukhan 44:16].

Bukhari 4822

Sahih

حدثنا يحيى حدثنا وكيع عن الأعمش عن أبي الضحى

عن مسروق قال

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

البخاري 4822صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
Our Lord, remove from us the punishment, indeed we are believers
Numbering
Darussalam 4822
Bukhari 4822