Sayyidah Ayshah (RA) and Umm Salamah the noble wives of the Prophet reported that dawn would overtake the Prophet (SAW) while he was in a state of sexual defilement through a wife of his. He would then have a bath and keep fast.
[Ahmed25732, Bukhari 1930, Muslim 11091