I used to wash the head of the Messenger of Allah (ﷺ), while I was in a state of menstruation.

Sahih Muslim Book 3, Hadith 10