Fasting
Hadith 2102, 2103

Mishkat al-Masabih 2102, 2103

Book 7: Fasting

مشكاة المصابيح

Chapter 10bPrivate Devotional Exercises in a Mosque - Section 2

باب الاعتكاف - الفصل الثاني

2102, 2103Mishkat al-Masabih 2102, 2103
عَنْ أَنَسٍ قَالَ: كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَعْتَكِفُ فِي الْعَشْرِ الْأَوَاخِرِ مِنْ رَمَضَانَ فَلَمْ يَعْتَكِفْ عَامًا. فَلَمَّا كَانَ الْعَامُ الْمقبل اعْتكف عشْرين. رَوَاهُ التِّرْمِذِيّ

وَرَوَاهُ أَبُو دَاوُدَ وَابْنُ مَاجَهْ عَنْ أَبِي بن كَعْب

Anas said that the Prophet was accustomed to engage in private devotion in the mosque during the last ten nights of Ramadan; but one year he omitted it and he engaged in it during twenty nights the next year.

Tirmidhi transmitted it, and Abu Dawud and Ibn Majah transmitted it from Ubayy b. Ka'b.

Reference:
Mishkat al-Masabih 2102, 2103
In-book reference:
Book 7, Hadith 143

Text, translation and grading from Sunnah.com.