הזהיר בית דין הגדול וראשי ישיבה שלא למנות דיין אדם שאינו חכם בחכמת התורה בעבור מעלות אחרות שיהיו לו וימנו אותו בעבורם, הנה הוא מוזהר מזה, אבל לא תביט התורה במנוי זולת לחריצות האיש בחכמת התורה והיותו יודע צווייה ואזהרותיה והנהגתו וחזקתו במעשים טובים והנאותים לזה, והזהירה ממנות ממונה בעבור מעלות אחרות, והוא אמרו לא תכירו פנים. ולשון ספרי לא תכירו זה הממונה להושיב הדיינין, רוצה לומר שזאת האזהרה אמנם לאיש שימנה הדיינים על ישראל שהוזהר שלא למנותם בעבור מה שהקדמנו, שמא תאמר איש פלוני נאה אושיבנו דיין איש פלוני גבור או יודע בכל לשון אושיבנו דיין נמצא מזכה את החייב ומחייב את הזכאי לא מפני שהוא רשע אלא מפני שאינו בקי לכך אמר לא תכירו. (דברים, שם פי"ג): He prohibited the Great Court and the head of the yeshiva - not to appoint as a judge, a man who is not learned in the discipline of Torah, on account of other virtues that he has, to appoint him because of them. He is surely prohibited from this. Rather the Torah does not glance in its appointment at anything besides a man's dexterity in the discipline of Torah, his knowing its commands and its prohibitions and his behavior and steadfastness in good deeds that are fitting for this [position]. And it prohibited him from appointing an appointee because of other virtues; and that is His saying, "You must not show any partiality" (Deuteronomy 1:17). And the language of the Sifrei (Sifrei Devarim 17:1) is, "'You must not show' - this is [addressed to] one who is appointed to seat judges." [This] means to say that this prohibition is indeed for the man that appoints the judges over Israel - that he is prohibited - that he not appoint them on account of what we said above. "Lest you will say, 'That man is handsome, I will seat him as judge; that man is powerful,' or 'knows all the languages, I will seat him as a judge' - such that he exonerates the guilty and incriminates the innocent. [This is] not because he is evil, but because he is not an expert. Hence He said, 'You must not show.'" (See Parashat Devarim; Mishneh Torah, The Sanhedrin and the Penalties within their Jurisdiction 13.)