Muaz bin Jabal reported,

Two men were arguing in the presence of the Prophet ﷺ, and one of them became so intensely angry that I imagined his nose was about to split apart from the severity of his rage.The Prophet ﷺ said, "I know a word which, if he were to say it, the anger he is feeling would leave him."Someone asked, "What is it, Messenger of Allah?"He replied, "Let him say, 'O Allah, I seek refuge in You from the accursed Satan.'"Muaz then began urging the man to say it, but he refused, persisted in his stubbornness, and only grew more enraged.

Abu Dawud 4780

Sahih

حدثنا يوسف بن موسى حدثنا جرير بن عبد الحميد عن عبد الملك بن عمير عن عبد الرحمن بن أبي ليلى

عن معاذ بن جبل قال

استب رجلان عند النبي ﷺ فغضب أحدهما غضبا شديدا حتى خيل إلي أن أنفه يتمزع من شدة غضبه فقال النبي ﷺ إني لأعلم كلمة لو قالها لذهب عنه ما يجده من الغضب فقال ما هي يا رسول الله قال يقول اللهم إني أعوذ بك من الشيطان الرجيم قال فجعل معاذ يأمره فأبى ومحك وجعل يزداد غضبا

أبو داود 4780صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Abu Dawud
Book
Manners
Chapter
What is said during anger
Numbering
Darussalam 4780
Abu Dawud 4780