Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
abudawud:2040[Chain 1] Musaddad > Yaḥyá [Chain 2] ʿUthmān b. Abū Shaybah > Ibn Numayr > ʿUbaydullāh > Nāfiʿ > Ibn ʿUmar

Ibn ‘Umar said “The Apostle of Allaah ﷺ used to visit Quba on foot and riding. Ibn Numair added “and he used to offer two rak’ahs of prayer.”  

أبو داود:٢٠٤٠حَدَّثَنَا مُسَدَّدٌ حَدَّثَنَا يَحْيَى ح وَحَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ عَنِ ابْنِ نُمَيْرٍ عَنْ عُبَيْدِ اللَّهِ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ

أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ يَأْتِي قُبَاءً مَاشِيًا وَرَاكِبًا زَادَ ابْنُ نُمَيْرٍ وَيُصَلِّي رَكْعَتَيْنِ  


See similar narrations below:

Collected by Bukhārī, Mālik
bukhari:7326Abū Nuʿaym > Sufyān > ʿAbdullāh b. Dīnār > Ibn ʿUmar

The Prophet ﷺ used to go to the Quba' mosque, sometimes walking, sometimes riding.  

البخاري:٧٣٢٦حَدَّثَنَا أَبُو نُعَيْمٍ حَدَّثَنَا سُفْيَانُ عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ عَنِ ابْنِ عُمَرَ ؓ

أَنَّ النَّبِيَّ ﷺ كَانَ يَأْتِي قُبَاءً مَاشِيًا وَرَاكِبًا  

malik:9-79Mālik > Nāfiʿ > ʿAbdullāh b. ʿUmar

Yahya related to me from Malik from Nafi from Abdullah ibn Umar that when the Messenger of Allah ﷺ used to go to Quba (to pray), he would walk as well as ride.  

مالك:٩-٧٩وَحَدَّثَنِي عَنْ مَالِكٍ عَنْ نَافِعٍ عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ

أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ يَأْتِي قُبَاءً رَاكِبًا وَمَاشِيًا