(4) باب إِتْيَانِ مَسْجِدِ قُبَاءٍ مَاشِيًا وَرَاكِبًا
Narrated Ibn `Umar:
The Prophet (ﷺ) used to go to the Mosque of Quba (sometimes) walking and sometimes riding. Added Nafi` (in another narration), "He then would offer two rak`at (in the Mosque of Quba)." (IT)
Reference (IT): Sahih al-Bukhari 1194 (IT)
In-book reference (IT): Book 20, Hadith 6 (IT)
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 21, Hadith 285 (IT)