بسم الله الرحمن الرحيم
Q: Where is it permissible to pray, or in what places is it permissible to pray as there is a reported prohibition on prayer in the camel’s resting areas?
A: The Prophet -sallahu alayhi wa salaam- was asked, “do we pray in the camel’s resting area?” He replied, “no.” He was then asked, “do we pray in the sheep pen?” He said, “yes.” Thus he prohibited them from praying in a camel’s resting area. It is also reported in some narrations the prohibition of prayer in the bathroom. Also reported in unambiguous narrations the prohibition on praying towards graves and even on graves. These are authentic without doubt. Prayer in the bathroom, as it relates to the reported narrations on its prohibition, there is differing. The least that is said is that on the apparent they (the narrations) reach the level of hasan (a grading that renders the narration acceptable as a proof in the religion).
Translated by Najeeb Al Anjelesi
Source: فتاوى فضيلة الشيخ العلامة ربيع بن هادي عمير المدخلي