Maliks Muwatta Book 9, Hadith Number 82.

Section : How to Do the Prayer in General.

Yahya related to me from Malik from Hisham ibn Urwa from his father that one of the muhajirun in whom he saw no harm asked Abdullah ibn Amr ibn al-As, “Can I pray in a place where camels are watered?” Abdullah replied, “No, but you can pray in a sheep-pen.”