It is narrated from Sayyiduna Ibn Abbas (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) would supplicate at times of distress: "La ilaha illallahul-'Azimul-Halim, la ilaha illallahu Rabbul-'Arshil-Karim, la ilaha illallahu Rabbus-samawati wa Rabbul-'Arshil-'Azim" (There is no god worthy of worship but Allah, the Mighty, the Forbearing. There is no god worthy of worship but Allah, Lord of the Noble Throne. There is no god worthy of worship but Allah, Lord of the heavens and Lord of the Mighty Throne).
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12695