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 Messenger of Allah ﷺ 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?
اسْتَبَّ رَجُلاَنِ عِنْدَ النَّبِيِّ ﷺ فَجَعَلَ أَحَدُهُمَا يَغْضَبُ وَيَحْمَرُّ وَجْهُهُ فَنَظَرَ إِلَيْهِ النَّبِيُّ ﷺ فَقَالَ إِنِّي لأَعْلَمُ كَلِمَةً لَوْ قَالَهَا لَذَهَبَ ذَا عَنْهُ أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ فَقَامَ إِلَى الرَّجُلِ رَجُلٌ مِمَّنْ سَمِعَ النَّبِيَّ ﷺ فَقَالَ أَتَدْرِي مَا قَالَ رَسُولُ اللَّهِ ﷺ آنِفًا قَالَ إِنِّي لأَعْلَمُ كَلِمَةً لَوْ قَالَهَا لَذَهَبَ ذَا عَنْهُ أَعُوذُ بِاللَّهِ مِنَ الشَّيْطَانِ الرَّجِيمِ فَقَالَ لَهُ الرَّجُلُ أَمَجْنُونًا تَرَانِي