It is narrated from Sayyidah Umm Salamah (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) would reach the morning in a state of janabah, not from a wet dream, and then he would be fasting that morning.
Hadith Referenceالمعجم الكبير للطبراني / مسند النساء / 20275