Imam Ja'far Sadeq (as) says:
He who does not have his anger under his control does not have his wisdom under his control, either.
مَنْ لَمْ یَمْلِکْ غَضَبَهُ لَمْ یَملِکْ عَقْلَهُ.
Al-kafi, vol. 2, p. 303
Imam Ali (as)
Swallow the swings of wrath, for I have not seen any swing with a sweeter final and a fresher future than it
تَجَرَّعِ الغَیظَ؛ فَإنِّي لَم أرَ جُرعَةً أحلی مِنها عاقِبَةً ولا ألَذَّ مَغَبَّةً.
Wasā'il al-Shīʿa, vol. 7,…