It was narrated that `Ali bin Abi Talib (رضي الله عنه) said:
The Messenger of Allah (ﷺ) taught me to say, if calamity befell me: “There is no god but Allah, the Forbearing the Most Generous; glory be to Allah, blessed be Allah, the Lord of the mighty Throne; praise be to Allah, the Lord of the Worlds.”