Abu Saeed Khudri reported,

I entered upon the Messenger of Allah ﷺ in the house of one of his wives and asked, "Messenger of Allah, which of the two mosques is the one founded upon piety?"He took a handful of pebbles and struck the ground with them, then said, "It is this mosque of yours," meaning the mosque of Medina.

Azami 10659

Sahih

عن أبي سعيد الخدري قال

دخلت على رسول الله ﷺ في بيت بعض نسائه، فقلت: يا رسول الله أي المسجدين الذي أسس على التقوى؟ قال: فأخذ كفا من حصباء فضرب به الأرض، ثم قال: هو مسجدكم هذا لمسجد المدينة.

الأعظمي 10659صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the lands
Chapter
Virtue of the Prophet's Madinah
Section
Virtue of the Prophet's masjid
Numbering
Jami al-Kamil 10659 (2nd edition)
Azami 10659