(29) باب اسْتِحْبَابِ صَلاَةِ النَّافِلَةِ فِي بَيْتِهِ وَجَوَازِهَا فِي الْمَسْجِدِ
(29) Chapter: It is recommended to offer voluntary prayers in one's house although it is permissible to offer them in the masjid, whether that is a regular voluntary prayer or any other, except for the public ritual prayers, namely, `Id prayer, the eclipse prayer, prayers for rain and Tarawih, and prayers that can only be offered in the masjid, such as greeting the masjid, and prayers that are recommended to be offered in the masjid, namely the two rak`ah following tawaf
248
حَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى، حَدَّثَنَا يَحْيَى، عَنْ عُبَيْدِ اللَّهِ، قَالَ أَخْبَرَنِي نَافِعٌ، عَنِ ابْنِ، عُمَرَ عَنِ النَّبِيِّ صلى الله عليه وسلم قَالَ " اجْعَلُوا مِنْ صَلاَتِكُمْ فِي بُيُوتِكُمْ وَلاَ تَتَّخِذُوهَا قُبُورًا " .
Ibn 'Umar reported Allah's Apostle (ﷺ) as saying:
Observe some of your prayers in your houses and do not make them graves.
Reference:
Sahih Muslim 777 a
In-book reference:
Book 6, Hadith 248
USC-MSA web (English) reference(deprecated numbering scheme):
Book 4, Hadith 1703