Deuteronomy 19:16-19

ERV(i) 16 If an unrighteous witness rise up against any man to testify against him of wrong-doing; 17 then both the men, between whom the controversy is, shall stand before the LORD, before the priests and the judges which shall be in those days; 18 and the judges shall make diligent inquisition: and, behold, if the witness be a false witness, and hath testified falsely against his brother; 19 then shall ye do unto him, as he had thought to do unto his brother: so shalt thou put away the evil from the midst of thee.