Prior to the construction of the mosque, the Prophet (ﷺ) offered the prayers at…

Sahih al-Bukhari Book 4 Hadith 101

Sahih al-Bukhari #234

Ablutions (Wudu') 4:101

Narrated Anas:

Prior to the construction of the mosque, the Prophet (ﷺ) offered the prayers at sheep-folds.

Chapter: (What is said) about the urine of camels, sheep and other animals and about their folds

Grade: Sahih