It is narrated from Hazrat Aisha (may Allah be pleased with her) that the Prophet (peace and blessings be upon him) would observe i'tikaf and would extend his head out from the mosque, and I would wash it while I was menstruating.