Sahih Bukhari | Volume 1 | Hadith Number 235

Narrated by Anas
Prior to the construction of the mosque, the Prophet offered the prayers at sheep-folds.