Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:42:37

And those who avoid the major sins and immoralities, and when they are angry, they forgive,  

and those who avoid grave sins and indecencies, those ˹acts˺ that require ˹the implementing of˺ the prescribed legal punishments (hudūd) (˹the supplement above is˺ an example of supplementing the part to the whole) and ˹who˺, when they are angry, forgive, they let it pass;
القرآن:٤٢:٣٧

وَالَّذِينَ يَجْتَنِبُونَ كَبَائِرَ الْإِثْمِ وَالْفَوَاحِشَ وَإِذَا مَا غَضِبُوا هُمْ يَغْفِرُونَ  

{والذين يجتنبون كبائر الإثم والفواحش} موجبات الحدود من عطف البعض على الكل {وإذا ما غضبوا هم يغفرون} يتجاوزون.