Here are the duas to be recited when entering and leaving the bathroom, as per Islamic tradition:
Dua for Entering the Bathroom
اللَّهُـمَّ إِنِّي أَعُـوذُ بِـكَ مِـنَ الْخُـبْثِ وَالْخَبَائِثِ
Transliteration: Allāhumma ‘innī ‘a`ūdhu bika minal-khubthi walkhabā’ith.
Translation: O Allah, I seek refuge in You from evil and the evil ones (or, from the evil male and female Jinn)[1][3][5].
Dua for Leaving the Bathroom
غُفْرَانَكَ
Transliteration: Ghufrānaka
Translation: I seek Your forgiveness[1][2][3].