Ibn `Abbas (May Allah be pleased with them) said: The Messenger of Allah ( Salla-llaahu Alayihi , wa aalaihi wa sahbihi, wa salaam Abadan sarmdan) used to say when he was in distress: “La ilaha illallahul-Atheemul-Halim. La ilaha illallahu Rabbul-`Arshil-`Atheem. La ilaha illallahu Rabbus-samaawaati, wa Rabbul-ardi, wa Rabbul-`Arshil-Karim.
Meaning: (None has the right to be worshiped but Allah only, the Greatest, the most Compassionate. None has the right to be worshiped but Allah the Rubb of the Mighty Throne. None has the right to be worshiped but Allah the Rubb of the heavens, the Rubb of the earth, and the Rubb of the Honorable Throne).”[Al-Bukhari and Muslim].
The only medicine in a time of distress is the remembrance of Allah Whose Help alone should be sought. This Du`a contains words which glorify Allah and exalt Him far above all else. It is desirable to recite these words when one is in distress as this is exactly what the Prophet used to recite in such situations.