Aisha during her menses used to comb and oil the hair of the Prophet (ﷺ) while he used to be in I`tikaf in the mosque. He would stretch out his head towards her while she was in her chamber.
Sahih al-Bukhari Book 33, Hadith 21