It is narrated from Sayyiduna Sahl bin Sa'd (may Allah be pleased with him) that in the time of the Messenger of Allah (peace and blessings be upon him) two men differed about the mosque that was founded on piety. One said: "It is the mosque of Madinah," and the other said: "It is the mosque of Quba'." So they both came to the Prophet (peace and blessings be upon him), and he (peace and blessings be upon him) said: "It is this mosque of mine."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6001