It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that whenever a difficult matter befell the Messenger of Allah (peace and blessings be upon him), he (peace and blessings be upon him) would say: 'La ilaha illallahul-'Azimul-Halim, la ilaha illallahu Rabbul-'Arshil-Karim, la ilaha illallahu Rabbus-samawati wal-ard, wa Rabbul-'Arshil-'Azim' (There is no god worthy of worship except Allah, the Most Magnificent, the Most Forbearing; there is no god worthy of worship except Allah, the Lord of the Noble Throne; there is no god worthy of worship except Allah, the Lord of the heavens and the earth and the Lord of the Magnificent Throne).
Hadith Referenceالمعجم الأوسط / باب الألف / 1010
Hadith Takhrij«أخرجه البخاري فى «صحيحه» برقم: 6345، 6346، 7426، 7431، ومسلم فى «صحيحه» برقم: 2730، والنسائي فى «السنن الكبرى» برقم: 7627، 7628، 10413، 10414، 10415، والترمذي فى «جامعه» برقم: 3435، 3435 (م)، وابن ماجه فى «سننه» برقم: 3883، وأحمد فى «مسنده» برقم: 2040، 2333، 2380، 2381، 2450، 2572، 2578، 2611، 3208، 3417، والطيالسي فى «مسنده» برقم: 2773، وأبو يعلى فى «مسنده» برقم: 2541، وعبد بن حميد فى «مسنده» برقم: 658، 657، 660، والبزار فى «مسنده» برقم: 4812، 5329، 5334، وابن أبي شيبة فى «مصنفه» برقم: 29765، والطبراني فى «الكبير» برقم: 10772، 12750، 12751»