Authentic hadithNarrated by Bukhari & Muslim

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.

Source

صحيح البخاري (1/ 40) (142). صحيح مسلم (1/ 283) (375). الإلمام بشرح عمدة الأحكام، لإسماعيل الأنصاري (1/ 23). تيسير العلام شرح عمدة الأحكام، للبسام (ص36).
100% Free App

Join 50,000+ Muslims

Download for free and never miss a prayer again

The Prophet (may Allah's peace and blessings be upon him) us | Jurisprudence and Juristic Principles | Al Muslim Plus