Narrated Sa'id: and the narrator Musa said: As far as Amr thinks, the Prophet (ﷺ) said: The whole earth is a place of prayer except public baths and graveyards
Hadith No. 492
Sunan Abu Dawud
Gradings:
Al-Albani:
Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Sahih
Zubair Ali Zai:
Isnaad Sahih