It is narrated from Hazrat Aisha (may Allah be pleased with her) and Hazrat Umm Salamah (may Allah be pleased with her) that sometimes the Prophet (peace and blessings be upon him) would be in a state in the morning which made ghusl obligatory by choice, and then he would also fast.