Dua for entering the restroom
Dua:
Bismillaahi Allaahumma innee a oothu bika minal - khubthi walkhabaa'ith
Meaning of Dua:
In the name of Allah . O Allah, I seek protection in You from the male and female unclean spirits..
Dua for leaving the restroom:
Dua:
Ghufraanaka.
meaning of dua: I seek your forgiveness.