It was reported from the Prophet ﷺ that while he was in spiritual retreat in the mosque, Ayesha would come to him, and he would extend his head out so she could comb his hair, even while she was menstruating.
حدثنا محمد بن جعفر قال حدثنا شعبة عن هشام بن عروة عن أبيه
عن النبي ﷺ أنه كان معتكفا في المسجد فتجيء عائشة فيخرج رأسه فترجله وهي حائض