Messenger of Allah ﷺ used to practice Iʿtikaf every year in the month of Ramadan. And after offering the morning prayer, he used to enter the place of his Iʿtikaf. ʿAisha asked his permission to let her practice Iʿtikaf and he allowed her, and so she pitched a tent in the mosque. When Hafsa heard of that, she also pitched a tent (for herself), and when Zainab heard of that, she too pitched another tent. When, in the morning, Messenger of Allah ﷺ had finished the morning prayer, he saw four tents and asked, "What is this?" He was informed about it. He then said, "What made them do this? Is it righteousness? Remove the tents, for I do not want to see them." So, the tents were removed. The Prophet ﷺ did not perform Iʿtikaf that year in the month of Ramadan, but did it in the last ten days of Shawwal.
كَانَ رَسُولُ اللَّهِ ﷺ يَعْتَكِفُ فِي كُلِّ رَمَضَانَ وَإِذَا صَلَّى الْغَدَاةَ دَخَلَ مَكَانَهُ الَّذِي اعْتَكَفَ فِيهِ قَالَ فَاسْتَأْذَنَتْهُ عَائِشَةُ أَنْ تَعْتَكِفَ فَأَذِنَ لَهَا فَضَرَبَتْ فِيهِ قُبَّةً فَسَمِعَتْ بِهَا حَفْصَةُ فَضَرَبَتْ قُبَّةً وَسَمِعَتْ زَيْنَبُ بِهَا فَضَرَبَتْ قُبَّةً أُخْرَى فَلَمَّا انْصَرَفَ رَسُولُ اللَّهِ ﷺ مِنَ الْغَدِ أَبْصَرَ أَرْبَعَ قِبَابٍ فَقَالَ مَا هَذَا فَأُخْبِرَ خَبَرَهُنَّ فَقَالَ مَا حَمَلَهُنَّ عَلَى هَذَا آلْبِرُّ انْزِعُوهَا فَلاَ أَرَاهَا فَنُزِعَتْ فَلَمْ يَعْتَكِفْ فِي رَمَضَانَ حَتَّى اعْتَكَفَ فِي آخِرِ الْعَشْرِ مِنْ شَوَّالٍ