Sunan an-Nasa'i, Book 8, Hadith 12 (Nasa'i 701)

Abu Umamah bin Sahl bin Hunaif said:

"My father said: 'The Messenger of Allah (ﷺ) said: 'Whoever goes out to his Masjid - the Masjid of Quba' and prays therein, that will be equivalent to 'Umrah.'"