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.
bukhari:6853ʿAbdān > ʿAbdullāh > Yūnus > al-Zuhrī > ʿUrwah > ʿĀʾishah

Messenger of Allah ﷺ never took revenge for his own self in any matter presented to him till Allah's limits were exceeded, in which case he would take revenge for Allah's sake.  

البخاري:٦٨٥٣حَدَّثَنَا عَبْدَانُ أَخْبَرَنَا عَبْدُ اللَّهِ أَخْبَرَنَا يُونُسُ عَنِ الزُّهْرِيِّ أَخْبَرَنِي عُرْوَةُ عَنْ عَائِشَةَ ؓ قَالَتْ

مَا انْتَقَمَ رَسُولُ اللَّهِ ﷺ لِنَفْسِهِ فِي شَىْءٍ يُؤْتَى إِلَيْهِ حَتَّى تُنْتَهَكَ مِنْ حُرُمَاتِ اللَّهِ فَيَنْتَقِمَ لِلَّهِ  


See similar narrations below:

Collected by Bukhārī
bukhari:6786Yaḥyá b. Bukayr > al-Layth > ʿUqayl > Ibn Shihāb > ʿUrwah > ʿĀʾishah

Whenever the Prophet ﷺ was given an option between two things, he used to select the easier of the tow as long as it was not sinful; but if it was sinful, he would remain far from it. By Allah, he never took revenge for himself concerning any matter that was presented to him, but when Allah's Limits were transgressed, he would take revenge for Allah's Sake.  

البخاري:٦٧٨٦حَدَّثَنَا يَحْيَى بْنُ بُكَيْرٍ حَدَّثَنَا اللَّيْثُ عَنْ عُقَيْلٍ عَنِ ابْنِ شِهَابٍ عَنْ عُرْوَةَ عَنْ عَائِشَةَ ؓ قَالَتْ

مَا خُيِّرَ النَّبِيُّ ﷺ بَيْنَ أَمْرَيْنِ إِلاَّ اخْتَارَ أَيْسَرَهُمَا مَا لَمْ يَأْثَمْ فَإِذَا كَانَ الإِثْمُ كَانَ أَبْعَدَهُمَا مِنْهُ وَاللَّهِ مَا انْتَقَمَ لِنَفْسِهِ فِي شَىْءٍ يُؤْتَى إِلَيْهِ قَطُّ حَتَّى تُنْتَهَكَ حُرُمَاتُ اللَّهِ فَيَنْتَقِمُ لِلَّهِ