From Sahih Muslim (Hadith 1174): Anas reported:The Messenger of Allah (ﷺ) used to pray in the folds of the sheep and goats before the mosque was built