Two men disputed in the mosque about which mosque was founded upon piety. One of them said it was the mosque of Quba, while the other said it was the mosque of the Prophet ﷺ. The Prophet ﷺ said, "It is this mosque of mine."
حدثنا موسى بن داود حدثنا ليث عن عمران بن أبي أنس عن سعيد بن أبي سعيد و حدثناه قتيبة حدثنا ليث قال عمران بن أبي أنس
تمارى رجلان في المسجد الذي أسس على التقوى فقال أحدهما هو مسجد قباء وقال الآخر هو مسجد النبي ﷺ فقال النبي ﷺ هو مسجدي هذا
Its isnad is sahih, from both of its paths. The first path, all its narrators are trustworthy, and Imran bin Abu Anas al-Madani al-Qurashi is trustworthy. In the second path, Ibn Abu Anas is Nafi bin Malik al-Asbahi al-Madani, who is also trustworthy, and Ibn Abu Saeed in both paths is Abdul-Rahman. The hadith has already appeared at 10987.