"The Prophet ﷺ would put his head out while he was performing I'tikaf and I would wash it, while I was menstruating." (Using translation from Nasāʾī 387)
«كَانَ رَسُولُ اللهِ ﷺ يُدْنِي إِلَيَّ رَأْسَهُ وَهُوَ مُعْتَكِفٌ فَيَأْمُرُنِي فَأَغْسِلُهُ وَأَنَا حَائِضٌ»