عَنْ أَنَسٍ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَعْتَكِفُ فِي الْعَشْرِ الْأَوَاخِرِ مِنْ رَمَضَانَ فَلَمْ يَعْتَكِفْ عَامًا. فَلَمَّا كَانَ الْعَامُ الْمقبل اعْتكف عشْرين. رَوَاهُ التِّرْمِذِيّ
وَرَوَاهُ أَبُو دَاوُدَ وَابْنُ مَاجَهْ عَنْ أَبِي بن كَعْب
Translation
She said that the Prophet used to visit the sick while engaged in a period of private devotion in the mosque and he would pass on straight ahead without pausing and ask for him. Abu Dawud transmitted it.