It is narrated from Sayyiduna Ibn Amr (may Allah be pleased with him) that the Noble Prophet (peace and blessings be upon him) used to offer prayer in the sheepfolds, but he did not pray in the enclosures of camels and cows.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 6658
Hadith Gradingحکم دارالسلام:إسناده ضعيف لضعف ابن لهيعة، و حيي بن عبد الله المعافري.