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.
Sahih al-Bukhari Book 20, Hadith 5