Authentic hadith articleAll of the earth is a mosque (prayer place) except the graveyard and the bathroom
Authentic hadithNarrated by Ibn Majah - Narrated by At-Termedhy - Narrated by Abu Daoud - Narrated by Ahmad - Ad-DaarimiHadeethEnc #10645
Arabic hadith textعن أبي سعيد الخدري رضي الله عنه مرفوعًا: «الأرض كُلُّها مسجد إلا المَقْبَرة والحَمَّام».
English translationAbu Sa‘īd al-Khudri (may Allah be pleased with him) reported that the Prophet (may Allah's peace and blessings be upon him) said: "All of the earth is a mosque (prayer place) except the graveyard and the bathroom."
ExplanationExplanation of the hadith
All of the earth is a place (suitable) for prayer, except for the place where the dead are buried, and this includes all the area inside the fence of a cemetery; and the place where one bathes with hot water for treatment.
An-Nawawi (may Allah have mercy upon him) said: "Prayer in the dwelling places of the devil is disliked by unanimous agreement, such as bars, nightclubs, places where excise taxes are levied, and similar places where sins are openly committed, as well as churches, synagogues, restrooms, etc."