Sahih Muslim
1399.01

Ibn Umar reported that Allah's Messenger (ﷺ) visited (the mosque) at Quba' riding and on foot