Sahih al-Bukhari #2026
Retiring to a Mosque for Remembrance of Allah (I'tikaf) 33:2
Narrated `Aisha:
(the wife of the Prophet) The Prophet (ﷺ) used to practice I`tikaf in the last ten days of Ramadan till he died and then his wives used to practice I`tikaf after him.