Jami` at-Tirmidhi #606
The Book on Traveling 6:63
Ali bin Abi Talid (may Allah be pleased with him) narrated that :
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.'"