Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates this statement of the Prophet (peace and blessings of Allah be upon him): "When you find only a sheep pen or a camel pen (as a place) to perform prayer, then perform prayer in the sheep pen, but do not perform prayer in the camel pen."
Hadith Referenceصحیح ابن حبان / كتاب الصلاة / 1700
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الإرواء» (176).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرطهما.