Ibn ‘Umar said that there were seven places in which God’s Messenger forbade people to pray:
a dunghill, a slaughterhouse, a graveyard, the middle of the road, a bath, places where camels kneel to drink, and on the roof of God’s House.
Tirmidhi and Ibn Majah transmitted it.