Muaz bin Jabal reported,

Two men exchanged insults in the presence of the Prophet ﷺ until anger became visible on the face of one of them. The Prophet ﷺ said, "I know a word which, if he were to say it, his anger would leave him. 'I seek refuge in Allah from the accursed Satan.'"

Tirmidhi 3452

Sahih

حدثنا محمود بن غيلان حدثنا قبيصة أخبرنا سفيان عن عبد الملك بن عمير عن عبد الرحمن بن أبي ليلى

عن معاذ بن جبل رضي الله عنه قال

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

الترمذي 3452صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Supplications
Chapter
What to say when angry
Numbering
Darussalam 3452
Tirmidhi 3452