הזהיר הדיין שלא לקבל עדות בעל עבירה ומעשות דבר על פי עדותו. והוא אמרו אל תשת ידך עם רשע להיות עד חמס. ובא הפירוש אל תשת חמס עד להוציא החמסנים והגזלנים שהם פסולים לעדות שנאמר לא יקום עד חמס באיש. והתבארו משפטי מצוה זו בפ"ג מסנהדרין. (משפטים, שם פ"י): He prohibited the judge - that he not accept testimony of a sinner and not do anything based on his testimony. And that is His saying, "Do not place your hand with an evildoer to be a violent witness" (Exodus 23:1). And the explanation appeared (Mekhilta d'Rabbi Yishmael 23:1:2) - "Do not make a violent one a witness; to exclude thugs and robbers from being witnesses - as it is stated, 'If a violent witness rise up' (Deuteronomy 19:16)." And the regulations of this commandment have been explained in Chapter 3 of Sanhedrin. (See Parashat Mishpatim; Mishneh Torah, Testimony 10.)