Jundab bin Sufyan reported,

The Messenger of Allah ﷺ fell ill and did not rise for two or three nights. A woman came to him and said, "Muhammad, I hope your devil has abandoned you, for I have not seen him approach you for two or three nights now."So Allah عز وجل revealed, "By the morning brightness, and by the night when it grows still, your Lord has not forsaken you, nor does He despise you" [Duha 93:1–3].

Muslim 4657

Sahih

حدثنا إسحق بن إبراهيم ومحمد بن رافع واللفظ لابن رافع قال إسحق أخبرنا و قال ابن رافع حدثنا يحيى بن آدم حدثنا زهير عن الأسود بن قيس قال

سمعت جندب بن سفيان يقول

ا اشتكى رسول الله ﷺ فلم يقم ليلتين أو ثلاثا فجاءته امرأة فقالت يا محمد إني لأرجو أن يكون شيطانك قد تركك لم أره قربك منذ ليلتين أو ثلاث قال فأنزل الله عز وجل {والضحى والليل إذا سجى ما ودعك ربك وما قلى}

مسلم 4657صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Jihad and expeditions
Chapter
What the Prophet ﷺ faced of harm from the polytheists and hypocrites
Numbering
Darussalam 4657
Muslim 4657