´It was narrated from Ghudaif bin Al-Harith that he asked 'Aishah in which part of the night would the Messenger of Allah (ﷺ) perform Ghusl? She said:` "Sometimes he performed Ghusl at the beginning of the night and sometimes he performed Ghusl at the end." I said: "Praise be to Allah Who has made the matter flexible."
Hadith Referenceسنن نسائي / ذكر ما يوجب الغسل وما لا يوجبه / 223
Hadith Gradingالألبانی:صحيح | زبیر علی زئی:حسن
Hadith Takhrij«سنن ابی داود/الطھارة 90 (226) مطولاً، سنن ابن ماجہ/الصلاة 179 (1354)، (تحفة الأشراف: 17429)، مسند احمد 6/138، ویأتي عند المؤلف برقم: 405 (صحیح)»