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