Sahih Muslim 831
صحيح مسلم#831SahihAnas reported: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
Scholarly Authentication
We show the most cautious grade (weakest-wins) as the overall label. Individual scholars graded it as follows:
Every narration in Sahih Muslim is accepted as Sahih (authentic) by the established status of the book.
In-book reference: 3:152