5:107
فَ إِنْ عُثِرَ عَلَىٰٓ أَنَّ هُمَا ٱسْتَحَقَّ آ إِثْمًا فَ ـَٔاخَرَانِ يَقُومَ انِ مَقَامَ هُمَا مِنَ ٱلَّذِينَ ٱسْتَحَقَّ عَلَيْ هِمُ ٱلْ أَوْلَيَٰنِ فَ يُقْسِمَ انِ بِ ٱللَّهِ لَ شَهَٰدَتُ نَآ أَحَقُّ مِن شَهَٰدَتِ هِمَا وَ مَا ٱعْتَدَيْ نَآ إِنَّ آ إِذًا لَّ مِنَ ٱل ظَّٰلِمِينَ
But if it is found that those two were guilty of perjury, let two others stand in their place [who are] foremost [in claim] from those who have a lawful right. And let them swear by Allah, "Our testimony is truer than their testimony, and we have not transgressed. Indeed, we would then be of the wrongdoers."