The virtue of the Masjid of Quba', and the virtue of praying therein and visiting it Sahih Muslim 1399 a

Arabic hadith text
حَدَّثَنَا أَبُو جَعْفَرٍ، أَحْمَدُ بْنُ مَنِيعٍ حَدَّثَنَا إِسْمَاعِيلُ بْنُ إِبْرَاهِيمَ، حَدَّثَنَا أَيُّوبُ، عَنْ نَافِعٍ، عَنِ ابْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلمكَانَ يَزُورُ قُبَاءً رَاكِبًا وَمَاشِيًا‏.‏
Translation

Ibn Umar reported that Allah's Messenger (ﷺ) visited (the mosque) at Quba' riding and on foot.