Sahih al-Bukhari, Book 33, Hadith 1 (Bukhari 1952)

Narrated `Abdullah bin `Umar:

Allah's Messenger (ﷺ) used to practice I`tikaf in the last ten days of the month of Ramadan.