The Prophet ﷺ used to come to the Quba mosque both riding and walking. Ibn Numayr added, narrating from Ubaydullah from Nafi, that he would pray two units of prayer in it.
حدثنا مسدد حدثنا يحيى بن سعيد عن عبيد الله قال حدثني نافع
كان النبي ﷺ يأتي مسجد قباء راكبا وماشيا زاد ابن نمير حدثنا عبيد الله عن نافع فيصلي فيه ركعتين