Sulayman bin Surad reported,

Two men were arguing in the presence of the Prophet ﷺ. One of them grew angry, his face turning red. The Prophet ﷺ looked at him and said, "I know a word that, if he said it, this state would leave him. It is, 'I seek refuge in Allah from the accursed Satan.'"A man who had heard the Prophet ﷺ went over to the angry man and said, "Do you know what the Messenger of Allah ﷺ just said? He said, 'I know a word that, if he said it, this state would leave him. It is, I seek refuge in Allah from the accursed Satan.'"The man replied to him, "Do you think I am insane?"

Muslim 6647

Sahih

حدثنا نصر بن علي الجهضمي حدثنا أبو أسامة سمعت الأعمش يقول سمعت عدي بن ثابت يقول

حدثنا سليمان بن صرد قال

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

مسلم 6647صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Righteousness, maintaining ties, and good manners
Chapter
Virtue of one who controls himself when angry, and what removes anger
Numbering
Darussalam 6647
Muslim 6647