[Machine] The Messenger of Allah ﷺ used to wake up in a state of janabah without having had a wet dream, so he would perform ghusl (ritual bath) and continue with his fasting.
كَانَ رَسُولُ اللهِ ﷺ «يُصْبِحُ جُنُبًا مِنْ غَيْرِ احْتِلَامٍ فَيَغْتَسِلُ ثُمَّ يَمْضِي عَلَى صَوْمِهِ»