Abdullah bin Abbas reported,

Whenever a serious matter weighed upon the Messenger of Allah ﷺ, he would say, "There is no god but Allah, the Forbearing, the Magnificent. There is no god but Allah, Lord of the Noble Throne. 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." Then he would make his supplication.

Ahmad 2411

Sahih

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

عن ابن عباس

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

أحمد 2411صحيح
Contents
Reference
Commentary
Ayat
Collection
Musnad Ahmad
Book
Abdullah bin Abbas bin Abdul-Muttalib
Numbering
Darussalam 2411
Ahmad 2411