The Messenger of Allah ﷺ said, "A prayer in my mosque is better than a thousand prayers in any other mosque, except the Sacred Mosque."
حدثنا عبد الرزاق أخبرنا ابن جريج أخبرني عطاء أن أبا سلمة بن عبد الرحمن أخبره عن أبي هريرة أو
قال رسول الله ﷺ صلاة في مسجدي خير من ألف صلاة فيما سواه من المساجد إلا المسجد الحرام
Its isnad is sahih, and it is a repetition of the one before it. The uncertainty between Abu Hurairah and Ayesha does not affect its soundness, as is obviously clear. See the hadith after this one, and hadiths 7725 and 7726.