A witness may not become a judge, and the reason is because it is written: "And the two men who have the dispute shall stand before Hashem." "The two men"—these are the witnesses; "who have the dispute"—these are the litigants; "before Hashem"—these are the judges. For one cannot say that "the two men" are the litigants, because if so, it is entirely redundant. Furthermore, is it only men who come to judgment and not women? And furthermore, is it only two who come to judgment and not more? Rather, it certainly refers to the two witnesses, and the verse explained that the witnesses must stand before the judges, and not that they themselves shall be judges. Furthermore, regarding testimony, we require "testimony that you are able to subject to hazamah," and when the judges are the witnesses, they will not accept hazamah upon themselves. And he is not disqualified unless he is a witness who testified; for example, one of the judges who testified before his colleagues regarding an act he saw can no longer be a judge. However, a judge who saw the matter and did not testify may become a judge regarding this act that he saw. Not only that, but even three judges who saw the act at a time when they are fit to judge, such as during the day, even if they intended at the time of their seeing for the purpose of testimony, they may judge regarding this, for the hearing that they hear from the mouths of witnesses should not be greater than their own seeing. And in this case, the Torah did not require witnesses at all. But if they saw the act at night, which is not a time for judgment, they cannot judge the next day based on the seeing of the night, for in this case it is not relevant to say "hearing should not be greater than seeing," since the time of seeing was not a time of hearing, as one does not receive testimony at night. Therefore, if they wish to judge the next day regarding this, other witnesses shall testify before them. And if they saw on Shabbat or Yom Tov, which according to the Torah is a time for judgment and only by rabbinic decree are they not permitted to judge, as I wrote at the beginning of siman 5, there is a dispute among the later authorities whether they are fit to judge the next day based on this seeing, and the opinion inclines toward fitness [Urim VeTumim and Netivot HaMishpat]. And a single expert is forbidden to judge based on his seeing, for a single individual is not testimony at all [Netivot HaMishpat]. And this rule that a witness may not become a judge applies specifically to Torah matters, but in rabbinic matters, such as the validation of documents and the like, even a witness who testifies may become a judge, for they were not stringent in this. And in capital cases, some say that even a witness who sees cannot become a judge, but according to the Rambam in chapter 5 of Hilkhot Edut, there is no distinction in this [as he rules like Rabbi Tarfon in Bava Kamma 90b].
אין עד נעשה דיין והטעם משום דכתיב ועמדו שני האנשים אשר להם הריב לפני ד' שני האנשים אלו העדים אשר להם הריב אלו בעלי דינים לפני ד' אלו הדיינים דאין לומר דשני האנשים הם הבע"ד דא"כ מיותר הוא לגמרי ועוד דאטו אנשים באים לדין ולא נשים ועוד דאטו שנים באים לדין ולא יותר אלא וודאי דאשני העדים קאי וביאר הפסוק שהעדים צריכים לעמוד לפני הדיינים ולא שהם עצמם יהיו דיינים ועוד דבעדות בעינן עדות שאתה יכול להזימה וכשהדיינים הם העדים לא יקבלו הזמה על עצמן ואינו פסול רק עד שהעיד כגון אחד מהדיינים שהעיד בפני חביריו על מעשה שראה שוב אינו יכול להיות דיין אבל דיין שראה הדבר ולא העיד נעשה דיין בזה המעשה שראה ולא עוד אלא אפילו שלשה דיינים שראו המעשה בשעה שראוים לדון כגון ביום אם אפילו כוונו בשעת ראייתן בתורת עדות יכולים לדון בזה דלא תהא שמיעה ששומעין מפי העדים גדולה מראיית עצמן ובזה לא הצריכה התורה לעדים כלל אבל אם ראו המעשה בלילה שאינו זמן דין אין יכולין לדון למחר ע"פ ראיית הלילה דבזה לא שייך לומר לא תהא שמיעה גדולה מראייה דהא זמן הראייה לא היה זמן שמיעה דאין מקבלין עדות בלילה ולכן אם רוצים לדון למחר בזה יעידו עדים אחרים בפניהם ואם ראו בשבת ויו"ט דמן התורה הוי זמן דין רק מדרבנן אין רשאים לדון כמ"ש בריש סי' ה' יש מחלוקת בין האחרונים אם כשירים לדון למחר ע"פ ראייה זו והדעת נוטה להכשיר [או"ת ונה"מ] ויחיד מומחה אסור לדון ע"פ ראייתו דיחיד אינו עדות כלל [נה"מ] וזה שאין עד נעשה דיין היינו דוקא במילי דאורייתא אבל בדרבנן כמו בקיום שטרות וכה"ג אפילו עד המעיד נעשה דיין דלא החמירו בזה ובדיני נפשות י"א דאפילו עד הרואה אינו נעשה דיין ולהרמב"ם פ"ה מעדות אין חילוק בזה [דפוסק כר"ט ב"ק צ':]: