Narrated Anas (bin Malik):
Ar-Rubai (the paternal aunt of Anas bin Malik) broke the incisor tooth of young Ansari girl. Her family demanded the Qisas and they came to the Prophet (ﷺ) who passed the judgment of Qisas. Anas bin An-Nadr (the paternal uncle of Anas bin Malik) said, "O Allah's Messenger (ﷺ)! By Allah, her tooth will not be broken." The Prophet (ﷺ) said, "O Anas! (The law prescribed in) Allah's Book is Qisas." But the people (i.e. the relatives of the girl) gave up their claim and accepted a compensation. On that Allah's Apostle said, "Some of Allah's worshippers are such that if they take an oath, Allah will fulfill it for them."
USC-MSA web (English) reference: Vol. 6, Book 60, Hadith 135
Arabic reference: Book 65, Hadith 4611