The concept that controlling anger and forgiving others is rewarded can be found in several religious texts.
In Islam, the Qur'an highlights the virtue of forgiveness and controlling one's anger. For example, in Surah Al-Imran (3:134), it states that those who restrain anger and pardon people will be rewarded.
In Christianity, the Bible also emphasizes the importance of forgiveness and managing anger. Ephesians 4:31-32 encourages individuals to get rid of bitterness and to be kind and compassionate, forgiving each other.
Both texts underline the moral value of forgiveness and managing one's emotions, linking these traits to divine reward or favor.