Sahih al-Bukhari, Book 33, Hadith 2 (Bukhari 1953)

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.