Sahih Bukhari Volume 002, Book 021, Hadith Number 284.

Narated By 'Abdullah bin Dinar : Ibn 'Umar said, "The Prophet used to go to the Mosque of Quba every Saturday (sometimes) walking and (sometimes) riding." 'Abdullah (Ibn 'Umar) used to do the same.