1 – Seek refuge with Allah from the Devil:
Sulayman bin Sard narrated:
“I was sitting with the Prophet, when two men began slandering one another. One of them was red in the face, and the veins on his neck were standing out. The Prophet said: “I know a word which, if he were to say it, what he feels would go away. If he said: “I seek refuge with Allah from the Devil,” what he feels would go away.'”
[‘Fath al-Bari’; 6/337]
The Messenger of Allah said:
“If a man gets angry and says: “I seek refuge with Allah,” his anger will go away.”
[‘Sahih al-Jami’; # 695]
2 – Remain silent:
The Messenger of Allah said:
“If any of you becomes angry, let him keep silent.”
[‘Sahih al-Jami’; # 693]
3 – Sit down or lie down:
“Abu Dharr was taking his camels to drink at a trough that he owned, when some other people came along and said to one another: “Who can compete with Abu Dharr in bringing animals to drink and make his hair stand on end?” A man said: “I can.” So, he brought his animals and competed with Abu Dharr and ended up breaking the trough.Abu Dharr was standing when he saw this, so, he sat down, then he laid down. Someone asked him: “O Abu Dharr, why did you sit down then lie down?” He said: “The Messenger of Allah said: “If any of you becomes angry and he is standing, let him sit down, so that his anger will go away. If sit does not go away, let him lie down.”””
[Reported in the ‘Musnad’ of Ahmad (5/152) and ‘Sahih al-Jami’ (694)]
al-Imam al-Khattabi said: “One who is standing is in a position to strike and destroy, while the one who is sitting is less likely to do that, and the one who is lying down can do neither. It is possible that the Prophet told the angry person to sit down or lie down so that he would not do something that he would later regret, and Allah Knows best.”
[‘Ma’alim as-Sunan’; 5/141]