Sulayman bin Yasar reported,

He asked Umm Salama about a man who wakes up in a state of major ritual impurity, can he fast?She replied, "The Messenger of Allah ﷺ used to wake up in a state of major ritual impurity, not from a wet dream, and then fast."

Azami 4575

Sahih

عن سليمان بن يسار

أنه سأل أم سلمة عن الرجل يصبح جنبا أيصوم؟ قالت: كان رسول الله ﷺ يصبح جنبا من غير احتلام، ثم يصوم.

الأعظمي 4575صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
What is permitted and what is not permitted for the fasting person
Section
Validity of fasting for one who reaches dawn while in a state of janabah
Numbering
Jami al-Kamil 4575 (2nd edition)
Azami 4575