The Book of the Masjids
8/41. Chapter:
The Prophet (PBUH) Prohibiting Prayer in Camel Pens1
Sunan an-Nasai
أَخْبَرَنَا عَمْرُو بْنُ عَلِيٍّ، قَالَ حَدَّثَنَا يَحْيَى، عَنْ أَشْعَثَ، عَنِ الْحَسَنِ، عَنْ عَبْدِ اللَّهِ بْنِ مُغَفَّلٍ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم نَهَى عَنِ الصَّلاَةِ فِي أَعْطَانِ الإِبِلِ .
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.
Reference : Sunan an-Nasa'i 735In-book reference : Book 8, Hadith 48English translation : Vol. 1, Book 8, Hadith 736