From Sahih Bukhari (Hadith 7326): Narrated Ibn `Umar:The Prophet (ﷺ) used to go to the Quba' mosque, sometimes walking, sometimes riding