Sahih al-Bukhari 7326
Book 96: Holding Fast to the Qur'an and Sunnah · Narrated by Ibn `Umar
Arabic
حَدَّثَنَا أَبُو نُعَيْمٍ، حَدَّثَنَا سُفْيَانُ، عَنْ عَبْدِ اللَّهِ بْنِ دِينَارٍ، عَنِ ابْنِ عُمَرَ ـ رضى الله عنهما ـ أَنَّ النَّبِيَّ صلى الله عليه وسلم كَانَ يَأْتِي قُبَاءً مَاشِيًا وَرَاكِبًا.
English translation
Narrated Ibn `Umar:The Prophet (ﷺ) used to go to the Quba' mosque, sometimes walking, sometimes riding
Reference: Sahih al-Bukhari 7326, Book of Holding Fast to the Qur'an and Sunnah. English translation by Dr. Muhammad Muhsin Khan.