Sahih al-Bukhari 731
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
قَدْ عَرَفْتُ الَّذِي رَأَيْتُ مِنْ صَنِيعِكُمْ، فَصَلُّوا أَيُّهَا النَّاسُ فِي بُيُوتِكُمْ، فَإِنَّ أَفْضَلَ الصَّلاَةِ صَلاَةُ الْمَرْءِ فِي بَيْتِهِ إِلاَّ الْمَكْتُوبَةَ "
Narrated Zaid bin Thabit:
Allah's Messenger (ﷺ) made a small room in the month of Ramadan (Sa`id said, "I think that Zaid bin Thabit said that it was made of a mat") and he prayed there for a few nights, and so some of his companions prayed behind him. When he came to know about it, he kept on sitting. In the morning, he went out to them and said, "I have seen and understood what you did. You should pray in your houses, for the best prayer of a person is that which he prays in his house except the compulsory prayers."
Full reference and source
Sahih al-Bukhari 731 In-book : Book 10, Hadith 125 USC-MSA web (English) : Vol. 1, Book 11, Hadith 698 (deprecated)
View source on Sunnah.com (opens in a new tab)