The Prophet ﷺ used to visit the mosque of Quba, sometimes riding and sometimes walking.
حدثنا يحيى عن عبيد الله عن نافع
أن النبي ﷺ كان يأتي مسجد قباء راكبا وماشيا
Its isnad is sahih, and it is a repetition of 4846.