Muwatta Imam Malik Book of Shortening the Prayer, Hadith 74
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.
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ نَافِعٍ، عَنْ عَبْدِ اللَّهِ بْنِ عُمَرَ، أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ يَأْتِي قُبَاءً رَاكِبًا وَمَاشِيًا .