The Messenger of Allah ﷺ said, "A prayer in my mosque is better than a thousand prayers in any other mosque, except for the Sacred Mosque."
حدثنا وكيع عن سفيان عن صالح مولى التوأمة
قال رسول الله ﷺ صلاة في مسجدي أفضل من ألف صلاة فيما سواه من المساجد إلا المسجد الحرام
Its isnad is sahih. It was mentioned shortly before at 9967.