Ubayy said that the Messenger of Allah ﷺ said, "Whoever sets out and comes to this mosque, the mosque of Quba, and prays in it, will have a reward equal to that of an Amra."
أخبرنا قتيبة قال حدثنا مجمع بن يعقوب عن محمد بن سليمان الكرماني قال سمعت
قال أبي قال رسول الله ﷺ من خرج حتى يأتي هذا المسجد مسجد قباء فصلى فيه كان له عدل عمرة
Ibn Majah reported it in Iqamat al-Salawat, chapter on what has been mentioned about prayer in the masjid of Quba, no. 1412, from the hadith of Muhammad Kirmani, and it is also in al-Kubra, no. 778. It has a corroborating narration in Ibn Majah, no. 1411, and elsewhere, and its chain of transmission is hasan.