Hadithcore
Mishkat al-Masabih, 1300

Zaid b. Thabit reported God s Messenger as saying, “A man’s prayer in his house is more excellent than his prayer in this mosque of mine, except for the prescribed prayer." Abu Dawud and Tirmidhi transmitted it.

وَعَنْ زَيْدِ بْنِ ثَابِتٍ قَالَ: قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ: «صَلَاةُ الْمَرْءِ فِي بَيْتِهِ أَفْضَلُ مِنْ صَلَاتِهِ فِي مَسْجِدِي هَذَا إِلَّا الْمَكْتُوبَة» . رَوَاهُ أَبُو دَاوُد وَالتِّرْمِذِيّ

References1 variant
In-Book Reference
Book 4, Hadith 711