Sunan An-Nasa'i - سنن النسائي
3. The Book of Menstruation and Istihadah - كتاب الحيض والاستحاضة
21) Chapter: A Menstruating Woman Washing Her Husband's Head
It was narrated from 'Aishah:
"The Messenger of Allah (ﷺ) used to put his head out of the Masjid while he was performing I'tikaf, and I would wash it, while I was menstruating."
21) باب غَسْلِ الْحَائِضِ رَأْسَ زَوْجِهَا
أَخْبَرَنَا قُتَيْبَةُ، قَالَ حَدَّثَنَا الْفُضَيْلُ، - وَهُوَ ابْنُ عِيَاضٍ - عَنِ الأَعْمَشِ، عَنْ تَمِيمِ بْنِ سَلَمَةَ، عَنْ عُرْوَةَ، عَنْ عَائِشَةَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ يُخْرِجُ رَأْسَهُ مِنَ الْمَسْجِدِ وَهُوَ مُعْتَكِفٌ فَأَغْسِلُهُ وَأَنَا حَائِضٌ .