Hadith
أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، قَالَ حَدَّثَنَا يَحْيَى، عَنْ أَشْعَثَ، عَنِ الْحَسَنِ، عَنْ عَبْدِ اللَّهِ بْنِ مُغَفَّلٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم نَهَى عَنِ الصَّلاَةِ فِي أَعْطَانِ الإِبِلِ .
It was narrated from 'Abdullah bin Mughaffal that the Messenger of Allah (ﷺ) forbade praying in the camel pens. [1] A'tan:Kneeling places, or, where they kneel to drink water
Sahih · Abu Ghuddah
Sunan an-Nasa'i 735 ·Book 8, Hadith 48·Also available on sunnah.com·