Umar bin Khattab reported,

The Messenger of Allah ﷺ said, "There are seven places where prayer is not permitted, the roof of the House of Allah, the graveyard, the garbage dump, the slaughterhouse, the bathhouse, the resting place of camels, and the middle of the road."

Ibn Majah 747

Daif

حدثنا علي بن داود ومحمد بن أبي الحسين قالا حدثنا أبو صالح حدثني الليث قال حدثني نافع عن ابن عمر

عن عمر بن الخطاب

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

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