Sahih al-Bukhari 429
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ، قَالَ حَدَّثَنَا شُعْبَةُ، عَنْ أَبِي التَّيَّاحِ، عَنْ أَنَسٍ، قَالَ كَانَ النَّبِيُّ صلى الله عليه وسلم يُصَلِّي فِي مَرَابِضِ الْغَنَمِ، ثُمَّ سَمِعْتُهُ بَعْدُ يَقُولُ كَانَ يُصَلِّي فِي مَرَابِضِ الْغَنَمِ قَبْلَ أَنْ يُبْنَى الْمَسْجِدُ.
Narrated Abu Al-Taiyah [??]:
Anas said, "The Prophet (ﷺ) prayed in the sheep fold." Later on I heard him saying, "He prayed in the sheep folds before the construction of the, mosque."
Full reference and source
Sahih al-Bukhari 429 In-book : Book 8, Hadith 79 USC-MSA web (English) : Vol. 1, Book 8, Hadith 421 (deprecated)
View source on Sunnah.com (opens in a new tab)