Ayesha reported,

The Messenger of Allah ﷺ, whenever he was in spiritual retreat, would bring his head close to me so I could comb it. He would not enter the house except for human necessity.

Azami 4707

Sahih

عن عائشة، أنها قالت

كان رسول الله ﷺ، إذا اعتكف يدني إلي رأسه فأرجله، وكان لا يدخل البيت إلا لحاجة الإنسان.

الأعظمي 4707صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
Itikaf
Section
Exiting of the mutakif from the masjid to fulfill his needs, not for other matters like visiting the sick, following the funeral, and similar things
Numbering
Jami al-Kamil 4707 (2nd edition)
Azami 4707