(10) باب إِقَامَةِ الْحُدُودِ وَالاِنْتِقَامِ لِحُرُمَاتِ اللَّهِ
Narrated Aisha:
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.
Reference: Sahih al-Bukhari 6786
In-book reference: Book 86, Hadith 15
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 81, Hadith 777