Abdullah bin Umar reported,

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.

Ibn Majah 746

Daif

حدثنا محمد بن إبراهيم الدمشقي حدثنا عبد الله بن يزيد عن يحيى بن أيوب عن زيد بن جبيرة عن داود بن الحصين عن نافع

عن ابن عمر قال

نهى رسول الله ﷺ أن يصلى في سبع مواطن في المزبلة والمجزرة والمقبرة وقارعة الطريق والحمام ومعاطن الإبل وفوق الكعبة

ابن ماجه 746ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Mosques and congregations
Chapter
Places where prayer is disliked
Numbering
Darussalam 746
Ibn Majah 746