Ibn ‘Abbas reported God’s messenger as saying about one who observes a period of private devotion in a mosque, “He turns away from sins and he is rewarded for good deeds like one who does all good deeds.” Ibn Majah transmitted it.
Reported by Ibn Majah (No. 1781). Cited in Mishkat al-Masabih (No. 2108).
الإرشاد في معرفة علماء الحديث لأبي يعلى الخليلي (255)الْمُعْتَكِفُ ، يَعْكِفُ الذُّنُوبَ ، وَيُجْرَى لَهُ مِنَ الْحَسَنَاتِ كَعَامِلِ الْحَسَنَاتِ كُلِّهَا