Hadithcore
Hadith #2108470

’A’isha (RAA) narrated, The Messenger of Allah (ﷺ) used to put his head into (the window of my house) while he was in the mosque (performing I'tikaf) and I would comb his hair. When he was in I'tikaf he would not enter the house except for some need.”Agreed upon and the wording is from Al-Bukhari.

وَعَنْهَا قَالَتْ: { إِنْ كَانَ رَسُولُ اَللَّهِ ‏- صلى الله عليه وسلم ‏-لَيُدْخِلُ عَلَيَّ رَأْسَهُ ‏-وَهُوَ فِي اَلْمَسْجِدِ‏- فَأُرَجِّلُهُ, وَكَانَ لَا يَدْخُلُ اَلْبَيْتَ إِلَّا لِحَاجَةٍ, إِذَا كَانَ مُعْتَكِفًا } مُتَّفَقٌ عَلَيْهِ, وَاللَّفْظُ لِلْبُخَارِيِّ [1]‏ .‏

References2 variants
Sunnah.com reference
Book 5, Hadith 52
Arabic/English book reference
Book 5, Hadith 721