A man once asked the Prophet ﷺ for advice, and he said, 'Do not become angry.' The man repeated his request several times, and each time the answer was the same. The Quran describes the people of Paradise as those who spend in ease and hardship, who control their wrath and who forgive people, and says that Allah loves those who do good. It also describes believers as those who forgive when they are angry.
In one report, two men were quarrelling in front of the Prophet ﷺ, and one of them was so angry that his face turned red. The Prophet ﷺ said, 'I know a word which, if he said it, would remove what he feels: I seek refuge in Allah from Satan, the accursed.' The advice is to turn to Allah at the moment of anger, before the words or the hands act. Most people regret what they do in anger, so any delay is a mercy.
In practice, pausing, lowering your voice, leaving the room, delaying a reply and speaking again when calm are all ways to follow this advice. Scholars add that there is a righteous anger, when injustice is done or Allah's limits are violated, but it must be expressed justly. Aisha reported that the Prophet ﷺ never took revenge for himself in any matter, unless the sanctity of Allah was violated, and then he took action for Allah's sake. If anger is a regular struggle, it is worth speaking to a counsellor, which is not against faith.