The Holy Prophet ﷺ said in a prayer,
“O Allah! Please grant me Ghina (غنا) (being carefree) through knowledge, and adorn me with mild-temperedness.”
Whenever you start feeling angry and you feel you will be overcome by your anger, first do what the Holy Quran has advised us to do. Allah Ta’ala says;
“Should a stroke from the Satan strike you, seek refuge with Allah. Surely, He is All- Hearing, All-Knowing.” (7:200)
This means that whenever we feel that the Satan is trying to incite us to commit a sin, we should seek Allah’s refuge and recite اعوذ بالّٰلہ من الشیطٰن الرجیم.
The second act to perform when someone is becoming angry, is what the Holy Prophet ﷺ has advised us to do. He advised us that whenever you are becoming excessively angry, if you are standing, then sit down, and if you are sitting, then lie down.
In another narration, it has been said that the person should drink cold water at that time.
It is narrated in a Hadith that once the Holy Prophet ﷺ was going somewhere. On the way, he saw that Hadhrat Siddiq Akbar RAA was scolding a slave in anger. In a narration, it says that at that time the Holy Prophet ﷺ said to him,
“Remember that Allah Ta’ala has much more control and power over you, than you have on this person.”