Jameel ibn Dor'raj asked Imam Sadiq (a.s): “What should I do when I get afraid.” Imam Sadiq (a.s) said: “Say there is no god but God” in such circumstances.” Jameel reported that this helped alleviate his fear.
قلت له: يقع في قلبي أمر عظيم، فقال: قل: لا إله إلا الله، قال: فكلما وقع في قلبي قلت: لا إله إلا الله، فذهب عني.
Similar narrations
Al-Kāfi #1488“Once I asked Abu ‘Abdillah (a.s.) ‘A great thing happens in my heart.’ The Imam told me to say, ‘No one deserves to be worshipped except...