From Sahih Muslim (Hadith 684):
It is reported from 'A'isha that she observed:When the Messenger of Allah (ﷺ) was in I'tikaf, he inclined his head towards me and I combedhis hair, and he did not enter the house but for the natural calls (for relieving himself)
Reference: Muslim 684