Sunan Abi Dawud, Book 2, Hadith 102 (Abu Dawud 492)

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.