Sahih Bukhari Volume 001, Book 004, Hadith Number 235.

Narated By Anas : Prior to the construction of the mosque, the Prophet offered the prayers at sheep-folds.