The Messenger of Allah ﷺ forbade praying in seven places, the rubbish dump, the slaughterhouse, the graveyard, the middle of the road, the bathhouse, the resting places of camels, and on top of the Kaabah.
حدثنا محمد بن إبراهيم الدمشقي حدثنا عبد الله بن يزيد عن يحيى بن أيوب عن زيد بن جبيرة عن داود بن الحصين عن نافع
نهى رسول الله ﷺ أن يصلى في سبع مواطن في المزبلة والمجزرة والمقبرة وقارعة الطريق والحمام ومعاطن الإبل وفوق الكعبة
[Its chain of transmission is daif]Tirmidhi narrated it in the chapters on prayer, in the section on what is disliked to pray toward and what it contains, 3:46, from the hadith of Abdullah bin Yazid al-Muqri, with this wording, and he said, "Its chain of transmission is not that strong." Zayd bin Jubayrah has been criticized regarding his memory, and he is discarded as a narrator, as stated in Taqrib and other sources. Saji said, "He narrated from Dawud bin Husayn a hadith that is extremely objectionable" (Tahdheeb). The following hadith makes this one unnecessary.