كتاب الصيام
5  
Fasting
Bulugh al-Maram 701
’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‏ .‏
Reference : Bulugh al-Maram 701
In-book reference : Book 5, Hadith 701
English translation : Book 5, Hadith 721
Hadith Text
Reference