(3) باب لاَ يَدْخُلُ الْبَيْتَ إِلاَّ لِحَاجَةٍ
Narrated `Aisha:
(the wife of the Prophet) Allah's Messenger (ﷺ) used to let his head in (the house) while he was in the mosque and I would comb and oil his hair. When in I`tikaf he used not to enter the house except for a need.
Reference: Sahih al-Bukhari 2029
In-book reference: Book 33, Hadith 5
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 33, Hadith 246