Abdullah bin Abbas reported,

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

Muslim 6921

Sahih

حدثنا محمد بن المثنى وابن بشار وعبيد الله بن سعيد واللفظ لابن سعيد قالوا حدثنا معاذ بن هشام حدثني أبي عن قتادة عن أبي العالية

عن ابن عباس

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

مسلم 6921صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Remembrance, supplication, Tawba, and seeking forgiveness
Chapter
Supplication for distress
Numbering
Darussalam 6921
Muslim 6921