Hadithcore
Mishkat al-Masabih, 2097

‘A'isha said that the Prophet (ﷺ) used to engage in private devotions in the mosque during the last ten nights of Ramadan till God took him, and then his wives followed this practice after his death.* *<i>Mirqat</i> says that the Prophet’s wives observed periods of seclusion for devotion, not in the mosque but in their houses. (Bukhari and Muslim.)

وَعَنْ عَائِشَةَ: أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ كَانَ يَعْتَكِفُ الْعَشْرَ الْأَوَاخِرَ مِنْ رَمَضَانَ حَتَّى تَوَفَّاهُ اللَّهُ ثُمَّ اعْتَكَفَ أَزْوَاجُهُ مِنْ بعده

References1 variant
In-Book Reference
Book 7, Hadith 138