It was narrated that 'Aishah said:
When the Messenger of Allah (ﷺ) wanted to observe I'tikaf, [2] he would pray Fajr then enter the place where he wnated to observe I'tikaf. He wanted to observe I'tikaf during the last ten days of Ramadan, so he commanded that a Khiba' (tent) be pitched for him. Then Hafsah ordered that a Khiba' be pitched for her, and when Zainab saw her tent she ordered that a Khiba' be pitched for her too. When the Messenger of Allah (ﷺ) saw that he said: 'Is it righteousness that you seek?' And he did not observe I'tikaf in Ramadan, and observed I'tikaf for ten days in Shawwal (instead). [1] Al-Khiba': One of the house of the Bedouins made of Wabir (camel or goat fur) or wool, not of hair (from other pelts). And it would have two or three posts. (An-Nihayah) [2] Seclusion in the Masjid for the sake of devotion to Allah.