Ayesha reported,

Whenever the Messenger of Allah ﷺ wished to perform itikaf, he would pray the morning prayer and then enter the place where he intended to seclude himself.He once intended to perform itikaf during the last ten days of Ramadan, so he gave orders and a tent was pitched for him. Hafsah also gave orders and a tent was pitched for her. When Zaynab saw Hafsah's tent, she gave orders and a tent was pitched for her as well.When the Messenger of Allah ﷺ saw this, he said, "Is it righteousness you are seeking?" So he did not perform itikaf during Ramadan, and instead performed itikaf for ten days in Shawwal.

Nasai 710

Sahih

أخبرنا أبو داود قال حدثنا يعلى قال حدثنا يحيى بن سعيد عن عمرة

عن عائشة قالت

كان رسول الله ﷺ إذا أراد أن يعتكف صلى الصبح ثم دخل في المكان الذي يريد أن يعتكف فيه فأراد أن يعتكف العشر الأواخر من رمضان فأمر فضرب له خباء وأمرت حفصة فضرب لها خباء فلما رأت زينب خباءها أمرت فضرب لها خباء فلما رأى ذلك رسول الله ﷺ قال آلبر تردن فلم يعتكف في رمضان واعتكف عشرا من شوال

النسائي 710صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Mosques
Chapter
Setting up a tent in mosques
Numbering
Darussalam 710
Nasai 710