'Aishah (May Allah be pleased with her) reported:
The Prophet (ﷺ) used to engage himself in I'tikaf (seclusion for prayers) in the mosque during the last ten nights of Ramadan till he passed away; thereafter, his wives followed this practice after him.[Al- Bukhari and Muslim]. (JA)
App reference (JA): Book 10, Hadith 2 (JA)
Arabic/English book reference (JA): Book 10, Hadith 1269 (JA)