Language:
كتاب الأدب
78
Good Manners and Form (Al-Adab)
(76)
Chapter: To be cautious from being angry
(76)
باب الْحَذَرِ مِنَ الْغَضَبِ
Sahih al-Bukhari 6115

Narrated Sulaiman bin Sarad:

Two men abused each other in front of the Prophet (ﷺ) while we were sitting with him. One of the two abused his companion furiously and his face became red. The Prophet (ﷺ) said, "I know a word (sentence) the saying of which will cause him to relax if this man says it. Only if he said, "I seek refuge with Allah from Satan, the outcast.' " So they said to that (furious) man, 'Don't you hear what the Prophet (ﷺ) is saying?" He said, "I am not mad."

حَدَّثَنَا عُثْمَانُ بْنُ أَبِي شَيْبَةَ، حَدَّثَنَا جَرِيرٌ، عَنِ الأَعْمَشِ، عَنْ عَدِيِّ بْنِ ثَابِتٍ، حَدَّثَنَا سُلَيْمَانُ بْنُ صُرَدٍ، قَالَ اسْتَبَّ رَجُلاَنِ عِنْدَ النَّبِيِّ صلى الله عليه وسلم وَنَحْنُ عِنْدَهُ جُلُوسٌ، وَأَحَدُهُمَا يَسُبُّ صَاحِبَهُ مُغْضَبًا قَدِ احْمَرَّ وَجْهُهُ فَقَالَ النَّبِيُّ صلى الله عليه وسلم ‏ "‏ إِنِّي لأَعْلَمُ كَلِمَةً لَوْ قَالَهَا لَذَهَبَ عَنْهُ مَا يَجِدُ لَوْ قَالَ أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ ‏"‏‏.‏ فَقَالُوا لِلرَّجُلِ أَلاَ تَسْمَعُ مَا يَقُولُ النَّبِيُّ صلى الله عليه وسلم قَالَ إِنِّي لَسْتُ بِمَجْنُونٍ‏.‏
Reference : Sahih al-Bukhari 6115
In-book reference : Book 78, Hadith 142
USC-MSA web (English) reference : Vol. 8, Book 73, Hadith 136
  (deprecated numbering scheme)