when the Messenger of Allah ( ﷺ) decided to observe i'tikaf, he prayed in the morning and then went to the place of his i'tikaf, and he commanded that a tent should be pitched for him, and it was pitched. He (once) decided to observe i'tikaf in the last ten days of Ramadan. Zainab (the wife of the Holy Prophet) commanded that a tent should be pitched for her. It was pitched accordingly. And some other wives of Allah's Apostle ( ﷺ) commanded that tents should be pitched for them too. And they were pitched. When the Messenger of Allah (may peace he upon him) offered the morning prayer, he looked and found (so many) tents. Thereupon he said: What is this virtue that these (ladies) have decided to acquire? He commanded his tent to be struck and abandoned i'tikaf in the month of Ramadan and postponed it to the first ten days of Shawwal. (Using translation from Muslim 1173a)
رَسُولُ اللهِ ﷺ إِذَا أَرَادَ أَنْ يَعْتَكِفَ صَلَّى الْفَجْرَ ثُمَّ دَخَلَ مُعْتَكَفَهُ وَأَنَّهُ أَمَرَ بِخِبَائِهِ فَضُرِبَ أَرَادَ الِاعْتِكَافَ فِي الْعَشْرِ الْأَوَاخِرِ مِنْ رَمَضَانَ فَأَمَرَتْ زَيْنَبُ ؓ بِخِبَائِهَا فَضُرِبَ وَأَمَرَ غَيْرُهَا مِنْ أَزْوَاجِ النَّبِيِّ ﷺ بِخِبَاءٍ فَضُرِبَ فَلَمَّا صَلَّى الْفَجْرَ نَظَرَ فَإِذَا الْأَخْبِيَةُ فَقَالَ الْبِرَّ يُرِدْنَ؟ فَأَمَرَ بِخِبَائِهِ فَقُوِّضَ ثُمَّ تَرَكَ الِاعْتِكَافَ فِي شَهْرِ رَمَضَانَ حَتَّى اعْتَكَفَ فِي الْعَشْرِ الْأُوَلِ مِنْ شَوَّالٍ