Nafi' (may Allah have mercy on him) narrates from Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) used to come to the Quba Mosque on foot and riding. Ibn Numayr (may Allah have mercy on him) added that he (peace and blessings be upon him) would offer two rak'ahs of prayer in it.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الحج / 10292