"The Prophet used to bring his head close to me when I was menstruaring and he was in I'tikaf (seclusion in a mosques for the purpose of worship), and I would wash it and comb his hair." (Using translation from Ibn Mājah 633)
كَانَ النَّبِيُّ ﷺ يُدْنِي رَأْسَهُ إِلَيَّ وَهُوَ مُجَاوِرٌ يَعْنِي مُعْتَكِف وَأَنَا فِي حُجْرَتِي فَأَغْسِلُهُ وَأُرَجِّلُهُ وَأَنَا حَائِضٌ