Deuteronomy 19:16–19

16 “If a malicious witness rises up against a man to accuse him of wrongdoing,

17 then both the men who have the dispute shall stand before the Lord, before the priests and the judges who will be in office in those days.

18 “The judges shall investigate thoroughly, and if the witness is a false witness and he has accused his brother falsely,

19 then you shall do to him just as he had intended to do to his brother. Thus you shall purge the evil from among you.