Deuteronomy 19:19

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.

Deuteronomy 19:19 In-Context

17 then both the men, between whom the controversy is, shall stand before Jehovah, before the priests and the judges that shall be in those days;
18 and the judges shall make diligent inquisition: and, behold, if the witness be a false witness, and have 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.
20 And those that remain shall hear, and fear, and shall henceforth commit no more any such evil in the midst of thee.
21 And thine eyes shall not pity; life [shall go] for life, eye for eye, tooth for tooth, hand for hand, foot for foot.
The American Standard Version is in the public domain.