Sunan Ibn Majah #768
The Book On The Mosques And The Congregations 4:34
It was narrated that Abu Hurairah said:
The Messenger of Allah said: "If you cannot find anywhere (for prayer) except sheep's resting-places and camels' resting-places, then perform prayer in the sheep's resting-places and do not perform prayer in the camels' resting-places."