Ibn Umar reported that Allah's Messenger (ﷺ) visited (the mosque) at Quba' riding and on foot. Sahih Muslim Book 15, Hadith 593