It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) forbade praying in seven places: a garbage dump, a slaughterhouse, a graveyard, the middle of a public road, a bathhouse, the places where camels are kept, and on the roof of the House of Allah.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3794