Hadith 4
Anas bin Malik reported: When the Messenger of Allah ﷺ entered the toilet, he used to say (before entering): "O Allaah, I seek refuge in Thee. " This is according to the version of Hammad. Abd al-Warith has another version: "I seek refuge in Allaah from male and female devils. "
Hadith 5
Another tradition on the authority of Anas has: " O Allaah, I seek refuge in Thee. " Shubah said: Anas sometimes reported the words: "I take refuge in Allah. "
Hadith 6
Narrated Zayd ibn Arqam: The Messenger of Allah ﷺ said: These privies are frequented by the jinns and devils. So when anyone amongst you goes there, he should say: "I seek refuge in Allah from male and female devils. "