It is reported from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) concerning "Good and evil are not equal. Repel (evil) with that which is better" [Surah Fussilat: 34] that Allah Almighty has commanded the believers to be patient at the time of anger, forbearing in the face of ignorance, and forgiving when wronged. When they do this, Allah Almighty will protect them from Satan and humble their enemy, as though he were a devoted, warm friend.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب النكاح / 13299