Sunan Ibn Majah, Book 1, Hadith 31 (Ibn Majah 297)
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).'"