Abdullah bin Abbas reported,

The Prophet ﷺ used to say at times of distress, "There is no god but Allah, the Aleem, the Forbearing. There is no god but Allah, Lord of the Mighty Throne. There is no god but Allah, Lord of the heavens and Lord of the earth, Lord of the Noble Throne."

Bukhari 7426

Sahih

حدثنا معلى بن أسد حدثنا وهيب عن سعيد عن قتادة عن أبي العالية

عن ابن عباس رضي الله عنهما قال

كان النبي ﷺ يقول عند الكرب لا إله إلا الله العليم الحليم لا إله إلا الله رب العرش العظيم لا إله إلا الله رب السموات ورب الأرض رب العرش الكريم

البخاري 7426صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tawhid
Chapter
And His Throne was upon the water", "And He is the Lord of the Mighty Throne
Numbering
Darussalam 7426
Bukhari 7426