"The Prophet (ﷺ) would put his head out while he was in I'tikaf and I would wash it, while I was menstruating."
Sunan an-Nasa'i Book 1, Hadith 276