(30) باب فَضْلِ مَنْ يَمْلِكُ نَفْسَهُ عِنْدَ الْغَضَبِ وَبِأَىِّ شَىْءٍ يَذْهَبُ الْغَضَبُ
Sulaiman b. Surad reported that two persons abused each other in the presence of Allah's Apostle (ﷺ) and one of them fell into a rage and his face became red. Allah's Apostle (ﷺ) saw him and said:
I know of a wording; if he were to utter that, he would get out (of the fit of anger) (and the wording is): I seek refuge with Allah from Satan, the accursed. Thereupon, a person went to him who had heard that from Allah's Apostle (ﷺ) and said to him: Do you know what Allah's Messenger (ﷺ) said? He (the Holy Prophet) said: I know of a wording; if he were to say that, (the fit) would be no more (and the words are): I seek refuge with Allah from Satan, the accursed. And the person said to him: Do you find me mad?
Reference: Sahih Muslim 2610 b
In-book reference: Book 45, Hadith 144
USC-MSA web (English) reference(deprecated numbering scheme): Book 32, Hadith 6317