The Prophet ﷺ saw a man red in the face with rage and said he knew words that would take that feeling away: seeking refuge with Allah (SWT) from Shaytan. He also asked Allah (SWT) for the word of truth whether pleased or angry.
3 sourced Du'as Arabic, transliteration, meaning, and source
Start with this Du'a
When angry
أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ
A'udhu billahi mina-sh-shaytani-r-rajim.
“I seek refuge with Allah from Shaytan, the accursed.”
Sahih Muslim 2610 · Sahih al-Bukhari 3282
Two men were trading insults near the Prophet ﷺ, and one of them grew red in the face with anger. The Prophet ﷺ said he knew words that, if the man said them, what he felt would leave him: I seek refuge with Allah (SWT) from Shaytan, the accursed. Al-Bukhari's wording ends at "from Shaytan".
Rabbi a'udhu bika min hamazati-sh-shayatin, wa a'udhu bika Rabbi an yahdurun.
“My Lord, I seek refuge in You from the incitements of the devils, and I seek refuge in You, my Lord, lest they be present with me.”
Quran 23:97-98
A direct Quranic prayer for refuge from the prompting of devils and from their presence. It fits moments of temptation, agitation, recurring harmful thoughts, or spiritual unease.
Allahumma bi-'ilmika-l-ghayba wa qudratika 'ala-l-khalqi ahyini ma 'alimta-l-hayata khayran li, wa tawaffani idha 'alimta-l-wafata khayran li. Allahumma wa as'aluka khashyataka fi-l-ghaybi wa-sh-shahadah, wa as'aluka kalimata-l-haqqi fi-r-rida wa-l-ghadab, wa as'aluka-l-qasda fi-l-faqri wa-l-ghina, wa as'aluka na'iman la yanfad, wa as'aluka qurrata 'aynin la tanqati', wa as'aluka-r-rida'a ba'da-l-qada', wa as'aluka barda-l-'ayshi ba'da-l-mawt, wa as'aluka ladhdhata-n-nadhari ila wajhik, wa-sh-shawqa ila liqa'ik, fi ghayri darra'a mudirrah, wa la fitnatin mudillah. Allahumma zayyinna bi-zinati-l-iman, waj'alna hudatan muhtadin.
“O Allah, by Your knowledge of the unseen and Your power over creation, keep me alive as long as You know life is better for me, and take me when You know death is better for me. O Allah, I ask You for fear of You in private and in public. I ask You for the word of truth in contentment and in anger. I ask You for moderation in poverty and in wealth. I ask You for a bliss that never runs out and a delight of the eye that never ceases. I ask You for contentment after Your decree, and for a cool, pleasant life after death. I ask You for the joy of looking upon Your Face and a longing to meet You, without harmful adversity or a misleading trial. O Allah, adorn us with the beauty of faith, and make us guides who are rightly guided.”
Sunan an-Nasa'i 1305 (sahih)
'Ammar ibn Yasir led a short prayer and explained that he had made du'a in it with words he heard from the Prophet ﷺ. Among them: truthful speech whether pleased or angry, contentment with Allah's decree, and faith that adorns the believer.