It is narrated from one of the pure wives of the Prophet (peace and blessings be upon him) (may Allah be pleased with her) that "the Messenger of Allah (peace and blessings be upon him) would reach the morning in a state of major ritual impurity (janabah) without having had a wet dream, and then he (peace and blessings be upon him) would fast."
Imam Musaddad recorded it, and all its narrators are trustworthy. The same narration is also in the two Sahihs and Sunan Abi Dawud from Sayyidah Aishah and Sayyidah Umm Salamah (may Allah be pleased with them both), who both said: "During Ramadan the Messenger of Allah (peace and blessings be upon him) would reach the morning in a state of major ritual impurity due to intercourse, not a wet dream, and then he would fast."