Yahya bin Saeed reported,

I asked Abu Salih, "Did you hear Abu Hurayrah mention the merit of praying in the mosque of the Messenger of Allah ﷺ?"He replied, "No, but Abdullah bin Ibrahim bin Qariz informed me that he heard Abu Hurayrah narrating that the Messenger of Allah ﷺ said, 'A prayer in this mosque of mine is better than a thousand prayers,' or, 'is like a thousand prayers in any other mosque, except for the Sacred Mosque.'"

Muslim 3377

Sahih

حدثنا محمد بن المثنى وابن أبي عمر جميعا عن الثقفي قال ابن المثنى حدثنا عبد الوهاب قال سمعت

يحيى بن سعيد يقول

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

مسلم 3377صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Hajj
Chapter
Virtue of prayer in the mosques of Makkah and Madinah
Numbering
Darussalam 3377
Muslim 3377