Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bukhari:429Sulaymān b. Ḥarb > Shuʿbah > Abū al-Tayyāḥ > Anas

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."  

البخاري:٤٢٩حَدَّثَنَا سُلَيْمَانُ بْنُ حَرْبٍ قَالَ حَدَّثَنَا شُعْبَةُ عَنْ أَبِي التَّيَّاحِ عَنْ أَنَسٍ قَالَ

كَانَ النَّبِيُّ ﷺ يُصَلِّي فِي مَرَابِضِ الْغَنَمِ ثُمَّ سَمِعْتُهُ بَعْدُ يَقُولُ كَانَ يُصَلِّي فِي مَرَابِضِ الْغَنَمِ قَبْلَ أَنْ يُبْنَى الْمَسْجِدُ  


See similar narrations below:

Collected by Bukhārī, Muslim, Aḥmad
bukhari:234Ādam > Shuʿbah > Abū al-Tayyāḥ Yazīd b. Ḥumayd > Anas

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

البخاري:٢٣٤حَدَّثَنَا آدَمُ قَالَ حَدَّثَنَا شُعْبَةُ قَالَ أَخْبَرَنَا أَبُو التَّيَّاحِ يَزِيدُ بْنُ حُمَيْدٍ عَنْ أَنَسٍ قَالَ

كَانَ النَّبِيُّ ﷺ يُصَلِّي قَبْلَ أَنْ يُبْنَى الْمَسْجِدُ فِي مَرَابِضِ الْغَنَمِ  

muslim:524bʿUbaydullāh b. Muʿādh al-ʿAnbarī from my father > Shuʿbah > Abū al-Tayyāḥ > Anas

The Messenger of Allah ﷺ used to pray in the folds of the sheep and goats before the mosque was built.  

مسلم:٥٢٤bحَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ الْعَنْبَرِيُّ حَدَّثَنَا أَبِي حَدَّثَنَا شُعْبَةُ حَدَّثَنِي أَبُو التَّيَّاحِ عَنْ أَنَسٍ

أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ يُصَلِّي فِي مَرَابِضِ الْغَنَمِ قَبْلَ أَنْ يُبْنَى الْمَسْجِدُ  

ahmad:13018Ḥajjāj > Shuʿbah > Abū al-Tayyāḥ > Anas b. Mālik

[Machine] The Messenger of Allah ﷺ used to pray in the sheepfolds before he built the mosque.  

أحمد:١٣٠١٨حَدَّثَنَا حَجَّاجٌ قَالَ سَمِعْتُ شُعْبَةَ يُحَدِّثُ عَنْ أَبِي التَّيَّاحِ قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ قَالَ

كَانَ رَسُولُ اللهِ ﷺ قَبْلَ أَنْ يَبْنِيَ الْمَسْجِدَ يُصَلِّي فِي مَرَابِضِ الْغَنَمِ  

ahmad:12335Muḥammad b. Jaʿfar > Shuʿbah > Abū al-Tayyāḥ And Ḥajjāj > Shuʿbah > Abū al-Tayyāḥ > Anas b. Mālik

The Messenger of Allah ﷺ used to pray in the folds of the sheep and goats before the mosque was built. (Using translation from Muslim 524b)  

أحمد:١٢٣٣٥حَدَّثَنَا مُحَمَّدُ بْنُ جَعْفَرٍ حَدَّثَنَا شُعْبَةُ عَنْ أَبِي التَّيَّاحِ وَحَجَّاجٌ قَالَ سَمِعْتُ شُعْبَةَ عَنْ أَبِي التَّيَّاحِ قَالَ سَمِعْتُ أَنَسَ بْنَ مَالِكٍ يُحَدِّثُ

أَنَّ رَسُولَ اللهِ ﷺ كَانَ يُصَلِّي فِي مَرَابِضِ الْغَنَمِ قَبْلَ أَنْ يُبْنَى الْمَسْجِدُ