BUKHARI 6322: from Anas b. Mālik —
Whenever the Prophet ﷺ went to the lavatory, he used to say: "Allahumma inni aʿudhu bika min al-khubuthi wal khaba'ith."

البخاري ٦٣٢٢: عن انس بن مالك —
كَانَ النَّبِيُّ ﷺ إِذَا دَخَلَ الْخَلاَءَ قَالَ اللَّهُمَّ إِنِّي أَعُوذُ بِكَ مِنَ الْخُبُثِ وَالْخَبَائِثِ


Sound (Bukhārī)
Bukhārī > Invocations > § What to say when going to the lavatory
hadithunlocked.com