(32) باب مَا يَقُولُ إِذَا أَرَادَ دُخُولَ الْخَلاَءِ
Anas reported:
When the Messenger of Allah (ﷺ) entered the privy, and in the hadith transmitted by Hushaim (the words are): When the Messenger of Allah (ﷺ) entered the lavatory, be used to say: O Allah, I seek refuge in Thee from wicked and noxious things.
Reference: Sahih Muslim 375 a
In-book reference: Book 3, Hadith 152
USC-MSA web (English) reference(deprecated numbering scheme): Book 3, Hadith 729
Read hadith from the major collections in the app, with prayer times and a Qibla compass. Free.