أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، قَالَ حَدَّثَنَا يَحْيَى، عَنْ أَشْعَثَ، عَنِ الْحَسَنِ، عَنْ عَبْدِ اللَّهِ بْنِ مُغَفَّلٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم نَهَى عَنِ الصَّلاَةِ فِي أَعْطَانِ الإِبِلِ ‏.‏

It was narrated from 'Abdullah bin Mughaffal that the Messenger of Allah (PBUH) forbade praying in the camel pens. [1] A'tan: Kneeling places, or, where they kneel to drink water. Translation Not Available

Book Ref: Sunan An Nisai Book 8 Hadith 735
Web Ref:  Sunan An Nisai Vol 1 Book 8 Hadith 736