Ayesha reported,

The Messenger of Allah ﷺ was never given a choice between two matters except that he chose the easier of the two, as long as it was not sinful. If it was sinful, he would be the furthest of people from it. The Messenger of Allah ﷺ never took revenge for his own sake, but if the sanctity of Allah عز وجل was violated, he would take revenge for the sake of Allah.

Azami 9491

Sahih

عن عائشة، قالت

ما خير رسول الله ﷺ بين أمرين إلا أخذ أيسرهما ما لم يكن إثما، فإن كان إثما كان أبعد الناس منه، وما انتقم رسول الله ﷺ لنفسه إلا أن تنتهك حرمة الله عز وجل.

الأعظمي 9491صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Character of the Prophet ﷺ
Section
Prophet ﷺ never took revenge for himself
Numbering
Jami al-Kamil 9491 (2nd edition)
Azami 9491