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)."
Hadith ReferenceSahih Bukhari / The Book of The Superiority of offering As-Salat In The Mosque of Makkah and Al-Madina / Hadith: 1194
Hadith Gradingمحدثین:أحاديث صحيح البخاريّ كلّها صحيحة