The Prophet of Allah ﷺ used to say in 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."
حدثنا روح حدثنا سعيد وهشام بن أبي عبد الله عن قتادة عن أبي العالية
أن نبي الله ﷺ كان يقول عند الكرب لا إله إلا الله العظيم الحليم لا إله إلا الله رب العرش العظيم لا إله إلا الله رب السموات ورب الأرض رب العرش الكريم
Its isnad is sahih. Rawh is Ibn Abadah. Saeed is Ibn Abu Aruba. Hisham is Ibn Abu Abdullah Dastawai, and here in the two original manuscripts it appears as Hisham bin Abdullah, which is an error, so we have added the word "Abu". The hadith has already appeared by way of Dastawai at 2012 and 2344, and it has already appeared by other chains, the last of them at 2537.