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 his companion in anger, his face flushed red.The Prophet ﷺ said, "I know a word that, if he were to say it, what he is feeling would leave him. If he said, 'I seek refuge in Allah from the accursed Satan.'"The people said to the man, "Do you not hear what the Prophet ﷺ is saying?"He replied, "I am not insane."

Azami 15004

Sahih

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

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

الأعظمي 15004صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Vices of character
Section
What is said and done when angry
Numbering
Jami al-Kamil 15004 (2nd edition)
Azami 15004