From Sahih Muslim (Hadith 686):
A'isha, the wife of the Apostle (may peace he upon him), reported:The Messenger of Allah (ﷺ) put out from the mosque his head for me as he was in I'tikaf, and I washed it in the state that I was menstruating
Reference: Muslim 686