Narrated Ibn `Umar
The Prophet (ﷺ) used to go to the Quba' mosque, sometimes walking, sometimes riding.