From Ali Bin Abi Talib [رضي الله عنه] that the Messenger of Allaah [ﷺ] said:
❝A screen between the sight of the Jinn and the private parts of the children of Adam is that when one of you enters the toilet he says Bismillaah.❞
[Collected By Tirmidhi, (No. 606) | Authenticated By Al-Albaani | Translated By Abbas Abu Yahya Miraath Al-Anbiyya]