Invocations for anguish

There is none worthy of worship but Allah the Mighty, the Forbearing. There is none worthy of worship but Allah, Lord of the Magnificent Throne. There is none worthy of worship but Allah, Lord of the heavens and Lord of the earth, and Lord of the Noble Throne.

Invocation for when something you dislike happens, or for when you fail to achieve what you attempt to do

144. Qadarullaahiwamaashaa’afa’ala.

It is the Decree of Allah and He does whatever He wills.

Reference:

“The strong believer is better and more dear to Allah than the weak believer, and in each of them there is good. Be vigilant for what is to your benefit and seek the help of Allah and do not falter. But when you are striken by some setback, do not say: ‘If only I had done such and such,’ rather say: ‘It is the Decree of Allah and He does whatever He wills.’ For verily the saying ‘if (i.e. if only I had) begins the work of the Devil.” Muslim 4/2052.

Invocation for anger

193. ‘A’oothubillaahiminash-Shaytaanir-rajeem .

I seek refuge in Allah from Satan the outcast from that which You provide for us.

Invocation against evil portent

O Allah there is no portent other than Your portent, no goodness other than Your goodness, and none worthy of worship other than You.

Reference: Ahmad 2/220, Ibn As-Sunni (no. 292). See also Al-Albani, Silsilatul-‘Ahadlth As-Sahihah 3/54, (no. 1065). As for bodings of good, these used to please the Prophet (SAW) and so when he heard good words from someone, he used to say: “We have taken from you a good portent from your mouth,” Abu Dawud, Ahmad. See also Al-Albani, Silsilatul-‘Ahadith As-Sahihah 2/363, and it is with Abu Ash-Shaikh Al-Asfahani in ‘Akhlaqun-Nabiyy, pg. 270.

What to say when you feel a pain in your body

243. Put your hand on the place where you feel pain and say:

Bismillaah.

With the Name of Allah (three times).

Then say :

‘A’oothubillaahiwaqudratihi min sharrimaa ‘ajiduwa ‘uhaathiru.

I seek refuge in Allah and in His Power from the evil of what I find and of what I guard against.

Reference: Muslim 4/1728.

What to say when you feel frightened

General advice from Prophet Muhammad (sall’allahualayhiwasallam) when you are in distress or suffering from anxiety:
In hadith #599 narrated by Abdullah ibn Abbas in Sunan Abu Dawood, The Prophet (peace be upon him) said: If anyone continually asks pardon, Allah will appoint for him a way out of every distress, and a relief from every anxiety, and will provide for him from where he did not reckon.

When in distress or difficulty or sorrow:Source for this dua subsection:Fiqh-us-Sunnah, volume 4, no 128

1. Ibn ‘Abbas reported, “The Prophet, peace be upon him, at times of sorrow and grief used to supplicate, La ilahailla Allah Al-’Azim, Al-’Alim, la ilahailla Allah, Rabbul ‘arshil ‘Azim, la ilahaillaAllahu, Rabbus-Samawatiwarabbulardiwarabbul ‘arshikarim (There is no god but Allah, the Mighty, the Forbearing, there is no god but Allah, the Lord of the mighty throne, there is no god but Allah, the Lord of the heavens and the earth, and the Lord of the throne of honor)’.”Source: Bukhari and Muslim.

2. Anas said that when the Prophet, peace be upon him, was faced with a serious difficulty, he would always supplicate, “YaHayyu, yaQayyumu, bi-rahmatikaastaghithu (O the Living, O the Eternal, I seek help in Your grace).Source:Tirmidhi

3. Abu Hurairah reported that whenever the Prophet, peace be upon him, was faced with a serious difficulty, he would raise his head to the sky and supplicate, “Subhan-Allah al-’Azim (glory be to Allah, the Mighty).” And when he implored seriously and strongly, he would say “YaHayyu, YaQayyum (O the Living, the Eternal One).”Source: Tirmidhi

4. Abu Bakrah reported that the Prophet, peace be upon him, said, “The supplications of distress are, ‘Allahummarahmatakaarju, falatakilniilanafsitarfata ‘ain, waaslah li sha’nikullahu, la ilahailla anta (O Allah, I hope for Your mercy, so give me not over to my self even for as little as wink of an eye, and set right all my affairs, there is no god but You).”Source: Abu Daw’ud

5. Asma, daughter of ‘Amais, reported that the Prophet, peace be upon him, asked her, “Shall I tell you words that you may say in times of pain or distress. These are, ‘Allah, Allah, Rabbi la ushrikubihishai’an (Allah, Allah, my Lord, I associate none with Him).” Another narration says that these words should be said seven times.Source: Abu Daw’ud

6. Sa’d ibn Waqas reported that the Prophet, peace be upon him, said, “The supplication made by the Companion of the Fish (Prophet Yunus) in the belly of the fish was, ‘La ilahailla anta, subhanaka, innikuntuminadh-dhalimin (there is no god but You, You are far exalted and above all weaknesses, and I was indeed the wrongdoer)’. If any Muslim supplicates in these words, his supplication will be accepted.” In another report we read, “I know words that will cause Allah to remove one’s distress. These are the words (of supplication) of my brother Yunus, peace be upon him,”Source: Tirmidhi

7. Ibn Mas’ud reported that the Prophet, peace be upon him, said, “If any servant of Allah afflicted with distress or grief makes this supplication, his supplication will be accepted: ‘O Allah, I am Your servant, son of Your servant, son of your maidservant. My forehead is in Your hand. Your command conceming me prevails, and Your decision concerning me is just. I call upon You by every one of the beautiful names by which You have described Yourself, or which You have revealed in Your book, or have taught anyone of Your creatures, or which You have chosen to keep in the knowledge of the unseen with You, to make the Qur’an the delight of my heart, the light of my breast, and remover of my griefs, sorrows, and afflictions‘.” A supplication in these words will be answered. Allah will remove one’s affliction and replace it with joy and happiness.