It was narrated from 'Aishah that she used to comb the hair of the Messenger of Allah ﷺ when she was menstruating and he was performing I'tikaf. He would put his head out to her while she was in her room.
أَنَّهَا كَانَتْ تُرَجِّلُ رَأْسَ رَسُولِ اللَّهِ ﷺ وَهِيَ حَائِضٌ وَهُوَ مُعْتَكِفٌ فَيُنَاوِلُهَا رَأْسَهُ وَهِيَ فِي حُجْرَتِهَا