When the Messenger of Allah ﷺ entered the privy, and in the hadith transmitted by Hushaim (the words are): When the Messenger of Allah ﷺ entered the lavatory, be used to say: O Allah, I seek refuge in Thee from wicked and noxious things.
عَنْ أَنَسٍ فِي حَدِيثِ حَمَّادٍ كَانَ رَسُولُ اللَّهِ ﷺ إِذَا دَخَلَ الْخَلاَءَ وَفِي حَدِيثِ هُشَيْمٍ أَنَّ رَسُولَ اللَّهِ ﷺ كَانَ إِذَا دَخَلَ الْكَنِيفَ قَالَ اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْخُبْثِ وَالْخَبَائِثِ