The Prophet ﷺ said, "A prayer in this mosque of mine is better than a thousand prayers in any other mosque, except the Sacred Mosque."
عن النبي ﷺ قال: صلاة في مسجدي هذا أفضل من ألف صلاة فيما سواه إلا المسجد الحرام.
Muslim narrated it in the Book of Hajj (509:1395) through several routes from Yahya (that is, Qattan), from Ubaydullah, who said, "Nafi told me, from Ibn Umar, from the Prophet ﷺ," and he mentioned it.