Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, and Musa said in his version, according to what Amr reckoned, that the Prophet ﷺ said, "The entire earth is a place of prayer, except for the bathhouse and the graveyard."

Abu Dawud 492

Sahih

حدثنا موسى بن إسمعيل حدثنا حماد ح و حدثنا مسدد حدثنا عبد الواحد عن عمرو بن يحيى عن أبيه

عن أبي سعيد قال

قال رسول الله ﷺ وقال موسى في حديثه فيما يحسب عمرو إن النبي ﷺ قال الأرض كلها مسجد إلا الحمام والمقبرة

أبو داود 492صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Prayer
Chapter
Places where prayer is not permissible
Numbering
Darussalam 492
Abu Dawud 492