Zayd ibn Arqam (may Allah be pleased with him) reported that the Messenger of Allah (may Allah's peace and blessings be upon him) said: "Those privies are attended by the devils, so if anyone of you goes to a privy, let him say: I seek refuge with Allah from the male and female devils."
Authentic hadith - Narrated by Ibn Majah - Narrated by Abu Daoud - Narrated by Ahmad

The place where one relieves himself (privy) is attended by the Jinn and the devils who wait there to inflict harm and trouble on humans. A privy is a place where one's private parts are uncovered, and the name of Allah is not mentioned. So, when a Muslim goes there, he should say this supplication: I seek refuge with Allah from the males and females from among the devils.

Successfully sent!