The Messenger of Allah (ﷺ) used to spend the last ten days of Ramadan in I’tikaf. Nafi' said: " Abdullah bin 'Umar showed me the place where the Messenger of Allah (ﷺ) used to observe I'tikaf." Sunan Ibn Majah Book 7, Hadith 136