It was narrated from Ibn ‘Abbas that the Prophet (ﷺ) used to say at times of distress:
“La ilaha illallahul-Halimul-Karim, Subhan-Allahi Rabbil-‘Arshil-‘Azim, Subhan-Allahi Rabbil-samawatis-sab’i wa Rabbil-‘Arshil-Azim (None has the right to be worshipped but Allah, the Forbearing, the Most Generous; glory is to Allah the Lord of the Mighty Throne; glory is to Allah, the Lord of the seven heavens and the Lord of the Magnificent Throne).” Waki’ said with each wording La ilaha illallahu (none has the right to be worshipped but Allah) is to be included.