(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
254
وَحَدَّثَنِي مُحَمَّدُ بْنُ حَاتِمٍ، حَدَّثَنَا بَهْزٌ، حَدَّثَنَا وُهَيْبٌ، حَدَّثَنَا مُوسَى بْنُ عُقْبَةَ، قَالَ سَمِعْتُ أَبَا النَّضْرِ، عَنْ بُسْرِ بْنِ سَعِيدٍ، عَنْ زَيْدِ بْنِ ثَابِتٍ، أَنَّ النَّبِيَّ صلى الله عليه وسلم اتَّخَذَ حُجْرَةً فِي الْمَسْجِدِ مِنْ حَصِيرٍ فَصَلَّى رَسُولُ اللَّهِ صلى الله عليه وسلم فِيهَا لَيَالِيَ حَتَّى اجْتَمَعَ إِلَيْهِ نَاسٌ . فَذَكَرَ نَحْوَهُ وَزَادَ فِيهِ " وَلَوْ كُتِبَ عَلَيْكُمْ مَا قُمْتُمْ بِهِ " .
Zaid b. Thabit reported that the Messenger of Allah (ﷺ) made an apartment in the mosque of mats, and he observed in it prayers for many nights till people began to gather around him, and the rest of the hadith is the same but with this addition:
" Had this (Nafl) prayer become obligatory for you, you would not be able to observe it."
Reference:
Sahih Muslim 781 b
In-book reference:
Book 6, Hadith 254
USC-MSA web (English) reference(deprecated numbering scheme):
Book 4, Hadith 1709