It is narrated from Hazrat Aisha (may Allah be pleased with her) that once the Prophet (peace and blessings be upon him) slept while in a state requiring ghusl (ritual bath). When morning came, he performed ghusl and kept the fast of that day.