Anas bin Malik reported,

Rabi, the paternal aunt of Anas bin Malik, broke the front tooth of a young woman from the Ansar. The girl's family demanded retaliation, so they came to the Prophet ﷺ, and he ordered that retaliation be carried out.Anas bin Nadr, the uncle of Anas bin Malik, said, "No, by Allah, her tooth shall not be broken, Messenger of Allah."The Messenger of Allah ﷺ replied, "Anas, the Book of Allah prescribes retaliation."The family then agreed to accept compensation instead.The Messenger of Allah ﷺ said, "Among the servants of Allah are those who, if they swore an oath relying on Allah, He would fulfill it for them."

Bukhari 4611

Sahih

حدثني محمد بن سلام أخبرنا الفزاري عن حميد

عن أنس رضي الله عنه قال

كسرت الربيع وهي عمة أنس بن مالك ثنية جارية من الأنصار فطلب القوم القصاص فأتوا النبي ﷺ فأمر النبي ﷺ بالقصاص فقال أنس بن النضر عم أنس بن مالك لا والله لا تكسر سنها يا رسول الله فقال رسول الله ﷺ يا أنس كتاب الله القصاص فرضي القوم وقبلوا الأرش فقال رسول الله ﷺ إن من عباد الله من لو أقسم على الله لأبره

البخاري 4611صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Tafsir
Chapter
His saying, "And wounds is legal retribution"
Numbering
Darussalam 4611
Bukhari 4611