Ayesha reported,

The Prophet ﷺ would sometimes have dawn arrive during Ramadan while he was in a state of major ritual impurity not caused by a wet dream. He would then bathe and fast.

Bukhari 1930

Sahih

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

عائشة رضي الله عنها

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

البخاري 1930صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Fasting
Chapter
Bathing while fasting
Numbering
Darussalam 1930
Bukhari 1930