ENOfficial
Narrated Anas (rad): The Prophet (ﷺ) on entering the lavatory used to say: “O Allah, I seek refuge with You from devils – males and females (or all offensive and wicked things, evil deeds and evil spirits, etc.)”
Source: sunnah.com
Other translations
Arabic
وَعَنْهُ قَالَ: { كَانَ رَسُولُ اَللَّهِ - صلى الله عليه وسلم -إِذَا دَخَلَ اَلْخَلَاءَ قَالَ: "اَللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنْ اَلْخُبُثِ وَالْخَبَائِثِ" } أَخْرَجَهُ اَلسَّبْعَة ُ 1 .
sunnah.com