It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Noble Prophet (peace and blessings be upon him) used to come to the Quba Mosque both on foot and riding.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6432