EVIL-REPELLING PRAYERS AND SUPPLICATORY AMULETS
First: It is reported that when a man complained to Imam al-Sadiq (‘a) about loneliness, the Imam (‘a) said: May I lead you to a prayer that if you say, you will not feel lonely neither at nights nor in daytimes? It is this prayer:

It is reported that a man used to say this supplicatory prayer for thirty years incessantly, but when he ignored it at a certain night, he was stung by a scorpion at that night.
Second: It is reported that whoever spends a night alone in a house or in a room, should recite Ayah al-Kursi and say this supplicatory prayer:

.
Third: The Holy Prophet (s) is reported to have used these words as evil-repelling prayer (‘udhah) for Imam al-Hasan and Imam al-Husayn (‘a):

Commenting, the Holy Prophet (s) added, “Thus did (Prophet) Abraham use to repel evil from Ishmael and Isaac.”