Ali ibn Abi Talib reported: The Messenger of Allah, peace and blessings be upon him, taught me to say when I was afflicted with distress, “There is no god but Allah, the Forbearing, the Noble. Glory be to Allah, blessed is Allah the Lord of the great throne, and all praise is due to Allah the Lord of the worlds.”
Source: Musnad Aḥmad 683
Grade: Sahih (authentic) according to Al-Arna’ut
عَنْ عَلِيِّ بْنِ أَبِي طَالِبٍ رَضِيَ اللَّهُ عَنْهُ قَالَ عَلَّمَنِي رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ إِذَا نَزَلَ بِي كَرْبٌ أَنْ أَقُولَ لَا إِلَهَ إِلَّا اللَّهُ الْحَلِيمُ الْكَرِيمُ سُبْحَانَ اللَّهِ وَتَبَارَكَ اللَّهُ رَبُّ الْعَرْشِ الْعَظِيمِ وَالْحَمْدُ لِلَّهِ رَبِّ الْعَالَمِينَ
683 مسند أحمد بن حنبل
701 المحدث شعيب الأرناؤوط خلاصة حكم المحدث صحيح في تخريج المسند