Ayesha said, "I used to comb the hair of the Messenger of Allah ﷺ while I was menstruating."In another narration, Urwa was asked, "May a menstruating woman serve me? May a woman in a state of major ritual impurity come close to me?"Urwa replied, "All of that is a simple matter to me. Any of them may serve me, and there is no harm in it for anyone. Ayesha told me that she used to comb the hair of the Messenger of Allah ﷺ while she was menstruating. At that time the Messenger of Allah ﷺ was in seclusion at the mosque, and he would lean his head toward her while she was in her room, and she would comb it while menstruating."
كنت أرجل رأس رسول الله ﷺ وأنا حائض. وفي رواية عن عروة أنه سئل: أتخدمني الحائض أو تدنو مني المرأة وهي جنب؟ فقال عروة: كل ذلك علي هين، وكل ذلك تخدمني، وليس على أحد في ذلك بأس؛ أخبرتني عائشة أنها كانت ترجل- تعني- رأس رسول الله ﷺ وهي حائض، ورسول الله ﷺ حينئذ مجاور المسجد، يدني لها رأسه وهي في حجرتها، فترجله وهي حائض.
Malik narrated the first account in the Book of Purification (102) from Hisham bin Urwa, from his father, from Ayesha, and Bukhari narrated it through his route in the Book of Menstruation (295). Muslim also narrated it in the Book of Menstruation (297) from the hadith of Abu Khaythama, from Hisham, with this same chain, and in it, "He would bring his head close to me while I was in my chamber, and I would comb his hair while I was menstruating."The second account was narrated by Bukhari (296). In one version, she used to comb the Prophet'sﷺ hair while she was menstruating, while he was performing itikaf in the masjid and she was in her chamber, he would extend his head to her. This will come again in the Book of Fasting, in the chapter on itikaf.