It is narrated from Sayyiduna Sabrah (may Allah be pleased with him), through his son, that the Messenger of Allah (peace and blessings be upon him) said: "Pray in the pens of sheep, and do not pray in the pens of camels."
Hadith Referenceالمعجم الكبير للطبراني / باب السين / 6513