Quran 13:22those who are steadfast in seeking the favour of their Lord, and pray regularly and spend secretly and openly out of what We have provided them with, and ward off evil with good. Theirs shall be the final abode.
CommentaryIf he is badly treated by somebody, he should for his part respond with good treatment in order that in the Hereafter God should overlook his evil side and treat him with Grace and Mercy.
Thunder (Al-Ra‘d) 13:20–24
Quran 41:34Good and evil deeds are not equal. Repel evil with what is better; then you will see that one who was once your enemy has become your dearest friend,
CommentaryEven if people are not good to him, he should be good to them.
Revelations Well Expounded (Fussilat) 41:33–36