صحيح البخاري Sahih Bukhari كتاب الصوم The Book of As-Saum (The Fasting).
بَابُ اغْتِسَالِ الصَّائِمِ:

(25) Chapter. Taking a bath by a person observing Saum (fast).

3 hadith
Hadith 1930
حَدَّثَنَا أَحْمَدُ بْنُ صَالِحٍ ، حَدَّثَنَا ابْنُ وَهْبٍ ، حَدَّثَنَا يُونُسُ ، عَنِ ابْنِ شِهَابٍ ، عَنْ عُرْوَةَ ، قَالَتْ عَائِشَةُ رَضِيَ اللَّهُ عَنْهَا : " كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يُدْرِكُهُ الْفَجْرُ فِي رَمَضَانَ مِنْ غَيْرِ حُلْمٍ ، فَيَغْتَسِلُ وَيَصُومُ " .
Narrated `Aisha: (At times) in Ramadan the Prophet used to take a bath in the morning not because of a wet dream and would continue his fast.
Hadith Reference Sahih Bukhari / The Book of As-Saum (The Fasting). / Hadith: 1930
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 1931
حَدَّثَنَا إِسْمَاعِيلُ ، قَالَ : حَدَّثَنِي مَالِكٌ ، عَنْ سُمَيٍّ مَوْلَى أَبِي بَكْرِ بنِ عَبْدِ الرَّحْمَنِ بنِ الحَارِثِ بْنِ هِشَامِ بْنِ المُغِيرَةِ ، أَنَّهُ سَمِعَ بَكْرِ بْنَ عَبْدِ الرَّحْمَنِ : " كُنْتُ أَنَا وَأَبِي فَذَهَبْتُ مَعَهُ حَتَّى دَخَلْنَا عَلَى عَائِشَةَ رَضِيَ اللَّهُ عَنْهَا ، قَالَتْ : أَشْهَدُ عَلَى رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِنْ كَانَ لَيُصْبِحُ جُنُبًا مِنْ جِمَاعٍ ، غَيْرِ احْتِلَامٍ ، ثُمَّ يَصُومُهُ " .
Narrated Abu Bakr bin `Abdur-Rahman: My father and I went to `Aisha and she said, "I testify that Allah's Apostle at times used to get up in the morning in a state of Janaba from sexual intercourse, not from a wet dream and then he would fast that day."
Hadith Reference Sahih Bukhari / The Book of As-Saum (The Fasting). / Hadith: 1931
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة
Hadith 1932
ثُمَّ دَخَلْنَا عَلَى أُمِّ سَلَمَةَ ، فَقَالَتْ : مِثْلَ ذَلِكَ .
Then he went to Um Salama and she also narrated a similar thing.
Hadith Reference Sahih Bukhari / The Book of As-Saum (The Fasting). / Hadith: 1932
Hadith Grading محدثین: أحاديث صحيح البخاريّ كلّها صحيحة