´It was narrated that 'Abdullah bin Mughaffal Al-Muzani said:` "The Prophet said: 'Perform prayer in the sheep's resting-places and do not perform prayer in the camels' resting-places, for they were created from the devils."
Related hadith on this topic
Explanation & Benefits
Maulana Ataullah Sajid
Benefit:
The meaning of being created from devils is that a habit of mischief is found in them.
The rancor of the camel is well-known; therefore, there remains a danger that, given the opportunity, it may try to cause harm.
Otherwise, urine and droppings are found in the enclosures of both goats and camels.
Source: Commentary on Sunan Ibn Mājah by Mawlānā ‘Atā’ullāh Sājid, Page: 769
Hafiz Muhammad Ameen
736. Commentary: The reason for the prohibition of prayer in camel enclosures is not impurity; otherwise, prayer should also be prohibited in goat enclosures, whereas explicit permission for praying in them has been mentioned. The practical narration has also already been discussed. (See Hadith: 703) The reason for the prohibition could be that the camel has been called "Shaytan al-Dawab" (the devil among animals), meaning it is a very mischievous animal—powerful and stubborn. The person praying will constantly be apprehensive that the camel might snatch something with its mouth, sit on him, or kick him, so his attention will remain on the camels instead of the prayer. In this way, humility and submissiveness (khushu‘ and khudu‘) will not remain. If the enclosure is empty of camels, can prayer be performed there? Apparently, it can be performed, because the aforementioned danger no longer exists. However, it is possible that due to the association with Shaytan, the effects of Shaytan remain in the empty enclosure as well; therefore, based on the apparent wording, it is better to avoid it.
Source: Sunan Nasa'i: Translation and Benefits by Shaykh Hafiz Muhammad Amin Hafizullah, Page: 736