Ali bin Abu Talib reported,

The Messenger of Allah ﷺ said, "The barrier between the jinn and the private parts of the children of Adam, when one enters the lavatory, is to say, 'Bismillah.'"

Ibn Majah 297

Daif

حدثنا محمد بن حميد حدثنا الحكم بن بشير بن سلمان حدثنا خلاد الصفار عن الحكم النصري عن أبي إسحق عن أبي جحيفة

عن علي قال

قال رسول الله ﷺ ستر ما بين الجن وعورات بني آدم إذا دخل الكنيف أن يقول بسم الله

ابن ماجه 297ضعيف
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Purification and its sunnahs
Chapter
What a man says when entering the toilet
Numbering
Darussalam 297
Ibn Majah 297