[Machine] If the Messenger of Allah ﷺ woke up in a state of janabah after having sexual intercourse, then he would perform ghusl (ritual bath) and then he would start his fast.
إِنْ كَانَ رَسُولُ اللهِ ﷺ لَيُصْبِحُ جُنُبًا مِنْ جِمَاعٍ ثُمَّ يَغْتَسِلُ ثُمَّ يُصْبِحُ صَائِمًا