Umm Salama bint Abu Umaya reported,

Aisha was asked about a man who wakes up in a state of major ritual impurity while intending to fast. She said, "The Messenger of Allah ﷺ used to wake up in a state of major ritual impurity from intercourse, not from a wet dream, then he would perform the ritual bath and complete his fast."

Ibn Majah 1704

Sahih

حدثنا علي بن محمد حدثنا عبد الله بن نمير عن عبيد الله عن نافع قال

سألت أم سلمة

عن الرجل يصبح وهو جنب يريد الصوم قالت كان رسول الله ﷺ يصبح جنبا من الوقاع لا من احتلام ثم يغتسل ويتم صومه

ابن ماجه 1704صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Fasting
Chapter
Man who wakes up in a state of janaba while intending to fast
Numbering
Darussalam 1704
Ibn Majah 1704