Ayesha reported,

The Messenger of Allah ﷺ mentioned that he intended to perform itikaf during the last ten days of Ramadan. Ayesha asked his permission to join him in itikaf, and he granted it. Hafsa then asked Ayesha to seek permission for her as well, which she did. When Zaynab bint Jahsh saw this, she ordered a tent to be set up for her, and it was set up.She said, whenever the Messenger of Allah ﷺ finished his prayer, he would go to his own tent. He noticed the tents and asked, "What is this?"They replied, "These are the tents of Ayesha, Hafsa, and Zaynab."The Messenger of Allah ﷺ said, "Is it righteousness they intended by this? I will not perform itikaf."He returned, and when he had broken his fast, he performed itikaf for ten days in Shawwal.

Azami 4703

Sahih

عن عائشة

أن رسول الله ﷺ ذكر أن يعتكف العشر الأواخر من رمضان، فاستأذنته عائشة فأذن لها. وسألت حفصة عائشة أن تستأذن لها، ففعلت. فلما رأت ذلك زينب بنت جحش أمرت ببناء فبني لها قالت: وكان رسول الله ﷺ إذا صلى انصرف إلى بنائه فبصر بالأبنية فقال: ما هذا. قالوا: بناء عائشة وحفصة وزينب. فقال رسول الله ﷺ: آلبر أردن بهذا؟ ما أنا بمعتكف. فرجع فلما أفطر اعتكف عشرا من شوال.

الأعظمي 4703صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Fasting
Chapter
Itikaf
Section
Women's itikaf in the masjid
Numbering
Jami al-Kamil 4703 (2nd edition)
Azami 4703