Translation
(96) Holding Fast to the Qur'an and Sunnah
كتاب الاعتصام بالكتاب والسنة
(16) Chapter: The religious learned men should not differ
(16) باب مَا ذَكَرَ النَّبِيُّ صلى الله عليه وسلم وَحَضَّ عَلَى اتِّفَاقِ أَهْلِ الْعِلْمِ
Sahih al-Bukhari 7326 

Narrated Ibn `Umar:

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

حَدَّثَنَا أَبُو نُعَيْمٍ، حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم كَانَ يَأْتِي قُبَاءً مَاشِيًا وَرَاكِبًا‏.‏
Reference : Sahih al-Bukhari 7326
In-book reference : Book 96, Hadith 56
USC-MSA web (English) reference : Vol. 9, Book 92, Hadith 427
  (deprecated numbering scheme)