Ayesha and Umm Salama reported,

The Prophet ﷺ would sometimes be overtaken by dawn while in a state of major ritual impurity from intimacy with his wife, and he would then bathe and continue his fast.

Tirmidhi 779

Sahih

حدثنا قتيبة حدثنا الليث عن ابن شهاب عن أبي بكر بن عبد الرحمن بن الحارث بن هشام قال

أخبرتني عائشة وأم سلمة زوجا النبي ﷺ

أن النبي ﷺ كان يدركه الفجر وهو جنب من أهله ثم يغتسل فيصوم

الترمذي 779صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Fasting
Chapter
One in a state of janabah whom Fajr reaches while intending to fast
Numbering
Darussalam 779
Tirmidhi 779