The Prophet (may Allah's peace and blessings be upon him) used to say before entering the bathroom: "Allāhumma inni a‘ūdhu bika min al-khubuth wa al-khabā’ith (O Allah, I seek refuge in You from the male and female devils)
Authenticعَنْ أَنَسٍ رضي الله عنه قَألَ: كَانَ النَّبِيُّ صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ إِذَا دَخَلَ الخَلاَءَ قَالَ: «اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الخُبُثِ وَالخَبَائِثِ».
Anas (may Allah be pleased with him) reported: The Prophet (may Allah's peace and blessings be upon him) used to say before entering the bathroom: "Allāhumma inni a‘ūdhu bika min al-khubuth wa al-khabā’ith (O Allah, I seek refuge in You from the male and female devils)."
Explanation
Whenever the Prophet (may Allah's peace and blessings be upon him) wanted to enter the place where he would relieve himself, either urinating or defecating, he would seek refuge with Allah and resort to Him to protect him from the evil of the male and female devils. The "Khubuth" and "Khabā’ith" were also said to mean evil and impurities.
Benefits
- It is recommended to say this supplication upon entering the bathroom.
- All creatures need their Lord in all of their affairs to ward off whatever could hurt or harm them.
Source · Agreed upon
From the Hadith Encyclopedia (hadeethenc.com).