صحيح مسلم Sahih Muslim كتاب الحيض The Book of Menstruation
باب مَا يَقُولُ إِذَا أَرَادَ دُخُولَ الْخَلاَءِ:

Chapter: What should be said when entering the area in which one relieves himself

2 hadith
Hadith 375
حَدَّثَنَا يَحْيَى بْنُ يَحْيَى : أَخْبَرَنَا حَمَّادُ بْنُ زَيْدٍ ، وَقَالَ يَحْيَى أَيْضًا : أَخْبَرَنَا هُشَيْمٌ كِلَاهُمَا ، عَنْ عَبْدِ الْعَزِيزِ بْنِ صُهَيْبٍ ، عَنْ أَنَسٍ ، فِي حَدِيثِ حَمَّادٍ ، " كَانَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا دَخَلَ الْخَلَاءَ ، وَفِي حَدِيثِ هُشَيْمٍ ، أَنَّ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ ، كَانَ إِذَا دَخَلَ الْكَنِيفَ ، قَالَ : اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْخُبْثِ وَالْخَبَائِثِ ".
This hadith is also transmitted by 'Abdul ' Aziz (RA) with the same chain of transmitters, and the words are: I seek refuge with Allah from the wicked and noxious things.
Hadith Reference Sahih Muslim / The Book of Menstruation / Hadith: 375
Hadith Grading محدثین: أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij «أحاديث صحيح مسلم كلها صحيحة»
Hadith 375
وحَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ ، وَزُهَيْرُ بْنُ حَرْبٍ ، قَالَا : حَدَّثَنَا إِسْمَاعِيل وَهُوَ ابْنُ عُلَيَّةَ ، عَنْ عَبْدِ الْعَزِيزِ ، بِهَذَا الإِسْنَادِ ، وَقَالَ : " أَعُوذُ بِاللَّهِ مِنَ الْخُبْثِ وَالْخَبَائِثِ " .
This hadith is also transmitted by 'Abdul 'Aziz with the same chain of transmitters, and the words are: I seek refuge with Allah from the wicked and noxious things.
Hadith Reference Sahih Muslim / The Book of Menstruation / Hadith: 375
Hadith Grading محدثین: أحاديث صحيح مسلم كلها صحيحة
Hadith Takhrij «أحاديث صحيح مسلم كلها صحيحة»