Sulayman bin Surad reported,

Two men exchanged insults in the presence of the Prophet ﷺ while we were sitting with him. One of them was abusing the other in anger, his face flushed red.The Prophet ﷺ said, "I know a word which, if he were to say it, would relieve him of what he is feeling. If he said, 'I seek refuge in Allah from the accursed Satan,' it would leave him."The people said to the man, "Do you not hear what the Prophet ﷺ is saying?"He replied, "I am not insane."

Bukhari 6115

Sahih

حدثنا عثمان بن أبي شيبة حدثنا جرير عن الأعمش عن عدي بن ثابت حدثنا

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

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

البخاري 6115صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Manners
Chapter
Beware of anger
Numbering
Darussalam 6115
Bukhari 6115