Hadithcore
Sahih al-Bukhari, 142
sahih

Narrated Anas:

Whenever the Prophet (ﷺ) went to answer the call of nature, he used to say, "Allah-umma inni a`udhu bika minal khubuthi wal khaba'ith i.e. O Allah, I seek Refuge with You from all offensive and wicked things (evil deeds and evil spirits).

حَدَّثَنَا آدَمُ، قَالَ حَدَّثَنَا شُعْبَةُ، عَنْ عَبْدِ الْعَزِيزِ بْنِ صُهَيْبٍ، قَالَ سَمِعْتُ أَنَسًا، يَقُولُ كَانَ النَّبِيُّ صلى الله عليه وسلم إِذَا دَخَلَ الْخَلاَءَ قَالَ ‏

‏ اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْخُبُثِ وَالْخَبَائِثِ ‏

‏‏.‏ تَابَعَهُ ابْنُ عَرْعَرَةَ عَنْ شُعْبَةَ‏.‏ وَقَالَ غُنْدَرٌ عَنْ شُعْبَةَ إِذَا أَتَى الْخَلاَءَ‏.‏ وَقَالَ مُوسَى عَنْ حَمَّادٍ إِذَا دَخَلَ‏.‏ وَقَالَ سَعِيدُ بْنُ زَيْدٍ حَدَّثَنَا عَبْدُ الْعَزِيزِ إِذَا أَرَادَ أَنْ يَدْخُلَ‏.‏

References2 variants
In-Book Reference
Book 4, Hadith 8
USC-MSA web (English) reference
Vol. 1, Book 4, Hadith 144 (deprecated numbering scheme)
Sharh · explanationclick to expand
The Prophet (blessings and peace of Allah be upon him) would teach his ummah the prescribed etiquette in all situations, which includes remembering Allah and seeking refuge with Him from the evils of the devils before entering places where people relieve themselves. In this hadith, Anas ibn Malik (may Allah be pleased with him) narrates that when the Prophet (blessings and peace of Allah be upon him) went to the outhouse to relieve himself – and outhouse is a word used to refer to any place where people relieve themselves by urinating or defecating – he would offer supplication by saying: O Allah, I seek refuge with You – so I resort to and seek protection with Allah (may He be glorified in exalted) from al-khubthi wa’l-khaba’ith. It was said that what is meant is male and female devils; so that he is seeking refuge from their schemes and their evil, and the whispers and intrusive thoughts that they cast into people’s minds and hearts. It was also suggested that al-khubth refers to evil or disbelief, or that al-khubth refers to the devils and al-khaba’ith refers to sins..
Related hadiths12
Compare isnād across 12 related chains →