Before entering the bathroom and which foot first enters and which foot you leave the rest room?

Before entering the bathroom:

اللّهُـمَّ إِنِّـي أَعـوذُ بِـكَ مِـنَ الْخُـبْثِ وَالْخَبائِث
O Allah, I seek protection in You from evil and the evil ones (or, from the evil male and female Jinn).
بِـكَأَعـوذُ إِنِّـياللّهُـمَّ
in YouI seek refugeIO Allah,
وَالْخَبائِثالْخُـبْثِمِـنَ
the evil ones (or, from the evil male and female Jinn).evil from

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.”

https://sunnah.com/abudawud:6