(7) باب قضاء الحاجة
Narrated Anas (rad):
The Prophet (ﷺ) on entering the lavatory used to say: [Allahumma inni a'udhu bika minal khubthi wal khaba'ithi]"O Allah, I seek refuge with You from devils – males and females (or all offensive and wicked things, evil deeds and evil spirits, etc.)" [Reported by As-Sab'a]
Reference: Bulugh al-Maram 88
In-book reference: Book 1, Hadith 106
English translation: Book 1, Hadith 94