Abdullah bin Abbas reported,

The Prophet of Allah ﷺ used to supplicate at times of distress, "There is no god but Allah, the Forbearing, the Wise. There is no god but Allah, Lord of the mighty Throne. There is no god but Allah, Lord of the heavens and the earth, and Lord of the noble Throne."Muhammad bin Bashshar narrated to us, Ibn Abu Adi narrated to us, from Hisham, from Qatada, from Abu Aliyah, from Ibn Abbas, from the Prophet ﷺ, the same as this.

Tirmidhi 3435

Sahih

حدثنا محمد بن بشار حدثنا معاذ بن هشام حدثني أبي عن قتادة عن أبي العالية

عن ابن عباس

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

الترمذي 3435صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Supplications
Chapter
What to say at times of distress
Numbering
Darussalam 3435
Tirmidhi 3435