The Messenger of Allah ﷺ would be overtaken by the dawn when he was in a state of sexual defilement. The narrator 'Abd Allah al-Adhrami said in his version: During Ramadan, due to sexual intercourse and no owing to a dream (i.e. nocturnal emission), and would fast. Abu Dawud said: How brief is this sentence uttered by the narrator, this is, "he was overtaken by daw when he was in the state of sexual defilement"? The tradition says: The Prophet ﷺ was overtaken by dawn in the state of sexual defilement when he was fasting.
عَنْ عَائِشَةَ وَأُمِّ سَلَمَةَ زَوْجَىِ النَّبِيِّ ﷺ أَنَّهُمَا قَالَتَا كَانَ رَسُولُ اللَّهِ ﷺ يُصْبِحُ جُنُبًا قَالَ عَبْدُ اللَّهِ الأَذْرَمِيُّ فِي حَدِيثِهِ فِي رَمَضَانَ مِنْ جِمَاعٍ غَيْرِ احْتِلاَمٍ ثُمَّ يَصُومُ