(7) باب الأَخْبِيَةِ فِي الْمَسْجِدِ
Narrated `Aisha:
The Prophet (ﷺ) intended to practice I`tikaf and when he reached the place where he intended to perform I`tikaf, he saw some tents, the tents of `Aisha, Hafsa and Zainab. So, he said, "Do you consider that they intended to do righteousness by doing this?" And then he went away and did not perform I`tikaf (in Ramadan) but performed it in the month of Shawwal for ten days.
Reference: Sahih al-Bukhari 2034
In-book reference: Book 33, Hadith 9
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 3, Book 33, Hadith 250