Hadith 14

Sahih Muslim

Book 5: The Book of Mosques and Places of Prayer

Chapter 1

The construction of the Masjid of the Prophet (saws)

باب ابْتِنَاءِ مَسْجِدِ النَّبِيِّ صلى الله عليه وسلم ‏

Sahih Muslim 524b
حَدَّثَنَا عُبَيْدُ اللَّهِ بْنُ مُعَاذٍ الْعَنْبَرِيُّ، حَدَّثَنَا أَبِي، حَدَّثَنَا شُعْبَةُ، حَدَّثَنِي أَبُو التَّيَّاحِ، عَنْ أَنَسٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ يُصَلِّي فِي مَرَابِضِ الْغَنَمِ قَبْلَ أَنْ يُبْنَى الْمَسْجِدُ ‏.‏
Anas reported:

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