It is narrated from Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "The screen between the eyes of the jinn and the private parts of the children of Adam is that when a person takes off his clothes, he says 'Bismillah' (In the name of Allah)."
I say that Zayd al-Ammi (may Allah have mercy on him) is a da'if (weak) narrator. Imam al-Tabarani (may Allah have mercy on him) narrated it in his book "al-Du'a" through Zayd al-Ammi (may Allah have mercy on him) as well, from Sayyiduna Anas (may Allah be pleased with him), that the Messenger of Allah (peace and blessings be upon him) said, and then the narrator mentioned the complete hadith.
Hadith Takhrij«قلت: زيد العمي ضعيف، رواه الطبراني في كتاب الدعاء من طريق زيد العمي، عن أنس قال: قال رسول الله صلى الله عليه وسلم» «أخرجه سنن الترمذي برقم: 606، وأخرجه سنن ابن ماجه برقم: 297، وأخرجه مسند البزار برقم: 484، وأخرجه المعجم الأوسط للطبراني برقم: 7062، وأخرجه شرح السنة برقم: 187»