The Messenger of Allah ﷺ used to go to Quba both riding and on foot.
حدثنا إسحاق بن عيسى أخبرنا مالك عن نافع
أن رسول الله ﷺ كان يأتي قباء راكبا وماشيا
Its isnad is sahih, and it repeats what came before it. It shows that Ishaq bin Isa Tabbaa followed Yahya and Qanabi in his narration from Malik from Nafi. The hadith is sahih in any case, whether from Malik from Nafi or from Malik from Abdullah bin Dinar.