Hadith Q1202
وَالدَّلِيلِ عَلَى أَنَّ الْأَمْرَ بِذَلِكَ أَمْرُ اسْتِحْبَابٍ لَا أَمْرُ إِيجَابٍ؛ إِذْ صَلَاةُ النَّوَافِلِ فِي الْبُيُوتِ أَفْضَلُ مِنَ النَّوَافِلِ فِي الْمَسَاجِدِ .
And the explanation of the evidence that this command of the Prophet (peace be upon him) was for recommendation, not obligation, because offering voluntary prayers at home is better than offering them in the mosques.
Hadith 1202
Sayyiduna Abdullah bin Sa’d (may Allah be pleased with him) narrates that I asked the Messenger of Allah (peace and blessings be upon him) about performing prayer in my house and praying in the mosque. He (peace and blessings be upon him) said: “You see how close my house is to the mosque, but except for the obligatory prayers, I prefer to pray in my house rather than in the mosque.” This is the narration of Janab Bundar.