Sunan an-Nasa'i, Book 3, Hadith 40 (Nasa'i 388)

It was narrated that 'Aishah said:

"The Prophet (ﷺ) would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating."