The Prophet ﷺ said, "Whoever says three times, 'In the name of Allah, with whose name nothing on earth or in heaven can cause harm, and He is the All-Hearing, the All-Knowing,' no sudden affliction will befall him until nightfall. And whoever says it when evening comes will not be struck by any sudden affliction until morning, if Allah wills."
حدثنا عبد الله حدثني محمد بن إسحاق المسيبي حدثنا أنس بن عياض عن أبي مودود عن محمد بن كعب عن أبان بن عثمان
أن النبي ﷺ قال من قال بسم الله الذي لا يضر مع اسمه شيء في الأرض ولا في السماء وهو السميع العليم ثلاث مرات لم تفجأه فاجئة بلاء حتى الليل ومن قالها حين يمسي لم تفجأه فاجئة بلاء حتى يصبح إن شاء الله