From Sahih Bukhari (Hadith 234): Narrated Anas:Prior to the construction of the mosque, the Prophet (ﷺ) offered the prayers at sheep-folds