the Messenger of Allah said: "The screen between the eyes of the jinns and nakedness of the children of Adam when one of you enters the area of relieving oneself is saying: 'Bismillah.'"
Jami` at-Tirmidhi Book 6, Hadith 63