Retiring to a Mosque for Remembrance of Allah (I'tikaf)
Bukhari :: Book 3 :: Volume 33 :: Hadith 247
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 Itikaf, and I would wash it during my menses.