Sahih al-Bukhari, Book 59, Hadith 91 (In-Book) ⓘ
Narrated Sulaiman bin Surd: While I was sitting in the company of the Prophet, two men abused each other and the face of one of them became red with anger, and his jugular veins swelled (i.e. he became furious). On that the Prophet said, "I know a word, the saying of which will cause him to relax, if he does say it. If he says: 'I seek Refuge with Allah from Satan.' then all is anger will go away." Some body said to him, "The Prophet has said, 'Seek refuge with Allah from Satan."' The angry man said, "Am I mad?"
حَدَّثَنَا عَبْدَانُ، عَنْ أَبِي حَمْزَةَ، عَنِ الأَعْمَشِ، عَنْ عَدِيِّ بْنِ ثَابِتٍ، عَنْ سُلَيْمَانَ بْنِ صُرَدٍ، قَالَ كُنْتُ جَالِسًا مَعَ النَّبِيِّ صلى الله عليه وسلم وَرَجُلاَنِ يَسْتَبَّانِ، فَأَحَدُهُمَا احْمَرَّ وَجْهُهُ وَانْتَفَخَتْ أَوْدَاجُهُ، فَقَالَ النَّبِيُّ صلى الله عليه وسلم " إِنِّي لأَعْلَمُ كَلِمَةً لَوْ قَالَهَا ذَهَبَ عَنْهُ مَا يَجِدُ، لَوْ قَالَ أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ. ذَهَبَ عَنْهُ مَا يَجِدُ ". فَقَالُوا لَهُ إِنَّ النَّبِيَّ صلى الله عليه وسلم قَالَ " تَعَوَّذْ بِاللَّهِ مِنَ الشَّيْطَانِ ". فَقَالَ وَهَلْ بِي جُنُونٌ
also referenced under: Hadith 3282 (DarusSalam) & Volume 4, Book 54, Hadith 502 (USC-MSA)