Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
muslim:1394dMuḥammad b. al-Muthanná And Ibn Abū ʿUmar Jamīʿ

I said to Abu Salih: Did you hear Abu Huraira (Allah be pleased with him) making a mention of the excellence of prayer in the mosque of Messenger of Allah ﷺ? He said: No (I did not hear directly from Abu Huraira), but I heard Abdullah b. Ibrahlm b. Qariz; say that' he had heard from Abu Huraira (Allah be pleased with him) that Messenger of Allah ﷺ had said: Prayer in this mosque of mine is better than a thousand prayers. or. is like one thousand prayers observed in other mosques besides It, except that it be in al-Masjid al-Haram.  

مسلم:١٣٩٤dحَدَّثَنَا مُحَمَّدُ بْنُ الْمُثَنَّى وَابْنُ أَبِي عُمَرَ جَمِيعًا عَنِ الثَّقَفِيِّ قَالَ ابْنُ الْمُثَنَّى حَدَّثَنَا عَبْدُ الْوَهَّابِ قَالَ سَمِعْتُ يَحْيَى بْنَ سَعِيدٍ يَقُولُ سَأَلْتُ أَبَا صَالِحٍ هَلْ

سَمِعْتَ أَبَا هُرَيْرَةَ يَذْكُرُ فَضْلَ الصَّلاَةِ فِي مَسْجِدِ رَسُولِ اللَّهِ ﷺ فَقَالَ لاَ وَلَكِنْ أَخْبَرَنِي عَبْدُ اللَّهِ بْنُ إِبْرَاهِيمَ بْنِ قَارِظٍ أَنَّهُ سَمِعَ أَبَا هُرَيْرَةَ يُحَدِّثُ أَنَّ رَسُولَ اللَّهِ ﷺ قَالَ صَلاَةٌ فِي مَسْجِدِي هَذَا خَيْرٌ مِنْ أَلْفِ صَلاَةٍ أَوْ كَأَلْفِ صَلاَةٍ فِيمَا سِوَاهُ مِنَ الْمَسَاجِدِ إِلاَّ أَنْ يَكُونَ الْمَسْجِدَ الْحَرَامَ