Dua before entering the toilet or bathroom
When entering the toilet a person should recite the following dua and enter with the left foot.
Allahumma inni audthubika minal kubthi wal kabaeth
(O Allah. I seek refuge in You from the male female evil and Jinns)
Dua after leaving the toilet or bathroom
When leaving the toilet one should leave with the right foot and recite the dua after coming out of the toilet.
(I seek forgiveness)