Sahih al-Bukhari #2030, 2031
Retiring to a Mosque for Remembrance of Allah (I'tikaf) 33:6
Narrated `Aisha:
The Prophet (ﷺ) used to embrace me during my menses. He also used to put his head out of the mosque while he was in I`tikaf, and I would wash it during my menses.