Ibn Abbas reported: The Prophet, peace and blessings be upon him, would say at a time of distress, “There is no God but Allah, the Knowing, the Forbearing. There is no God but Allah, Lord of the Great Throne. There is no God but Allah, Lord of the heavens, the earth, and the Noble Throne.”
Source: Ṣaḥīḥ al-Bukhārī 7426, Ṣaḥīḥ Muslim 2730
Grade: Muttafaqun Alayhi (authenticity agreed upon) according to Al-Bukhari and Muslim
عَنْ ابْنِ عَبَّاسٍ رَضِيَ اللَّهُ عَنْهُمَا قَالَ كَانَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ يَقُولُ عِنْدَ الْكَرْبِ لَا إِلَهَ إِلَّا اللَّهُ الْعَلِيمُ الْحَلِيمُ لَا إِلَهَ إِلَّا اللَّهُ رَبُّ الْعَرْشِ الْعَظِيمِ لَا إِلَهَ إِلَّا اللَّهُ رَبُّ السَّمَوَاتِ وَرَبُّ الْأَرْضِ رَبُّ الْعَرْشِ الْكَرِيمِ
7426 صحيح البخاري كتاب التوحيد باب وكان عرشه على الماء وهو رب العرش العظيم
2730 صحيح مسلم كتاب الذكر والدعاء والتوبة والاستغفار باب دعاء الكرب