It is narrated from Hazrat Aisha that sometimes the Prophet (peace be upon him) would be in a state of major ritual impurity (janabah) in the morning, then he would perform ghusl (ritual bath) and complete the fast for the rest of the day.
Hadith Referenceمسند احمد / مسند النساء / 26665
Hadith Gradingحکم دارالسلام:حديث صحيح، وهذا إسناد ضعيف لضعف صالح، وقد اختلف عليه فيه