Jabir bin Samura reported,

A man asked the Prophet ﷺ, "May I pray in the sheepfolds?"He replied, "Yes."The man asked, "May I pray in the camels' resting places?"He answered, "No."

Azami 2622

Sahih

عن جابر بن سمرة

أن رجلا سأل النبي ﷺ فقال: أصلي في مرابض الغنم؟ فقال: نعم قال: أصلي في مبارك الإبل؟ قال: لا.

الأعظمي 2622صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Prayer
Chapter
What is prohibited and disliked in prayer
Section
Disliking prayer in camel resting places and its permissibility in sheep pens
Numbering
Jami al-Kamil 2622 (2nd edition)
Azami 2622