[Machine] I performed Hajj with the Messenger of Allah ﷺ during the Farewell Pilgrimage and he mentioned menstruation in relation to Umrah. So, she said, "O Messenger of Allah, today is the Day of Arafah and I have not purified myself yet. I only intended to perform Umrah." The Messenger of Allah ﷺ told her, "Wash your head and make yourself ritually pure, and join the Hajj with your family, abstaining from performing Umrah." She said, "So, I did as he told me, and the hadith was recorded in Sahih Al-Bukhari and Sahih Muslim. It states that she performed ghusl (ritual purification) for menstruation during Hajj, and her ghusl was the prescribed ghusl. She was commanded to wash her head and comb her hair, and it appears that she was commanded to do so in a recommended manner, similar to how Asma bint 'Umays was commanded to perform ghusl for menstruation during 'Iddah (waiting period after divorce)."
أَهْلَلْتُ مَعَ رَسُولِ اللهِ ﷺ فِي حَجَّةِ الْوَدَاعِ بِعُمْرَةٍ فَذَكَرَ الْحَدِيثَ فِي حَيْضِهَا فَقَالَتْ يَا رَسُولَ اللهِ هَذَا يَوْمُ عَرَفَةَ وَلَمْ أَطْهُرْ بَعْدُ وَإِنَّمَا كُنْتُ تَمَتَّعْتُ بِالْعُمْرَةِ فَقَالَ لَهَا رَسُولُ اللهِ ﷺ انْقُضِي رَأْسَكِ وَامْتَشِطِي وَأَهِلِّي بِالْحَجِّ وَأَمْسِكِي عَنْ عُمْرَتِكِ فَقَالَتْ فَفَعَلْتُ وَذَكَرَ الْحَدِيثَ مُخَرَّجٌ فِي الصَّحِيحَيْنِ وَهِيَ أَنِ اغْتَسَلَتْ لِلْإِهْلَالِ بِالْحَجِّ وَكَانَ غُسْلُهَا غُسْلًا مَسْنُونًا وَقَدْ أُمِرَتْ فِيهِ بِنَقْضِ رَأْسِهَا وَامْتِشَاطِ شَعْرِهَا وَكَأَنَّهَا أُمِرَتْ بِذَلِكَ اسْتِحْبَابًا كَمَا أُمِرَتْ أَسْمَاءُ بِنْتُ عُمَيْسٍ بِالْغُسْلِ لِلْإِهْلَالِ عَلَى النِّفَاسِ اسْتِحْبَابًا