كتاب الطهارة وسننها
1  
The Book of Purification and its Sunnah
(9)
Chapter: What is to be said when entering the toilet
(9)
باب مَا يَقُولُ الرَّجُلُ إِذَا دَخَلَ الْخَلاَءَ
Sunan Ibn Majah 298
It was narrated that Anas bin Malik said:
"Whenever the Messenger of Allah entered the toilet, he would say: 'A'udhu Billahi minal-khubthi wa'l-khaba'ith (I seek refuge with Allah from male and female devils).'"
حَدَّثَنَا عَمْرُو بْنُ رَافِعٍ، حَدَّثَنَا إِسْمَاعِيلُ ابْنُ عُلَيَّةَ، عَنْ عَبْدِ الْعَزِيزِ بْنِ صُهَيْبٍ، عَنْ أَنَسِ بْنِ مَالِكٍ، قَالَ كَانَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ إِذَا دَخَلَ الْخَلاَءَ قَالَ ‏ "‏ أَعُوذُ بِاللَّهِ مِنَ الْخُبُثِ وَالْخَبَائِثِ ‏"‏ ‏.‏
Grade: Sahih (Darussalam)
Reference : Sunan Ibn Majah 298
In-book reference : Book 1, Hadith 32
English translation : Vol. 1, Book 1, Hadith 298