حَدَّثَنَا إِسْحَاقُ ، حَدَّثَنَا حَمَّادٌ ، عَنْ عَبْدِ الْعَزِيزِ بْنِ صُهَيْبٍ ، عَنْ أَنَسٍ ، أَنَّ رَسُولَ اللهِ - صَلَّى اللهُ عَلَيْهِ وَسَلَّمَ - كَانَ إِذَا دَخَلَ الْخَلَاءَ ، قَالَ : اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْخُبُثِ وَالْخَبَائِثِ .
It is narrated from Sayyiduna Anas (may Allah be pleased with him) that when the Messenger of Allah (peace and blessings be upon him) entered the toilet, he would make this supplication: "'Allahumma inni a'udhu bika min al-khubuthi wa al-khaba'ith' (O Allah, I seek refuge in You from the male and female devils)."