Short Answer
The phrase of greeting “as-salaamu alaykum” may be considered dhikr (remembrance) of Allah because it contains the name of Allah “as-salaam”, so some scholars said it is disliked to say this when in the bathroom which contains a toilet. However, this is only disliked when you are actively relieving yourself and not just sitting there waiting.
What the Prophet Said
A man greeted the Prophet (with Salam) while he was urinating, so he did not respond to him. [Tirmidhi #90]
Muhajir came to the Prophet while he was urinating. He greeted him. The Prophet did not return the greeting until he performed wudu. He then apologized to him, saying: I disliked remembering Allah except in the state of purification. [Abu Dawud #17]
What the Scholars Said
Ibn Hazm: The hadiths on this do not establish a prohibition or dislike for the area at all. [Al-Muḥallā bi al-Āthār #165]
Version 0.5 | [Shaykh] Mustafa Umar | 10-21-2026