The Book of Purification and its Sunnah 1:314
It was narrated that 'Ali said:
"The Messenger of Allah said: 'The screen between the Jinn and the nakedness of the sons of Adam is that when a person enters the Kanif, he should say: Bismillah (in the name of Allah).'"