Sahih Muslim Book 007, Hadith Number 3223.

Chapter : Eminence of the mosque of Quba; and excellence of prayer in it.

Ibn Umar reported that Allah's Messenger (may peace be upon him) visited (the mosque) at Quba' riding and on foot.