When all the words of the witnesses are found to be consistent, the Sanhedrin opens for the perpetrator of the transgression with merit, as has been explained in siman 18, and they say to him: "If you did not sin, do not fear their words." And in the Yerushalmi it is explained that the opening for merit is that they say: "Is it possible that this person killed a soul?" And the Sanhedrin deliberates the entire day; if they found merit for him, they acquitted him, and if not, they do not conclude the judgment for liability today, but rather they delay the judgment until the next day, as it is said: "righteousness lodged in it." And they bind the liable person in prison so that he does not flee. And all night the Sanhedrin pair off in pairs and minimize food and do not drink wine, and they discuss the matter all night, each one with his pair, regarding the matter of this transgression; if he was a murderer, they discuss the section of the murderer, and if he was one who uncovered nakedness, in the section of nakedness [Tosefta chapter 9]. And the next day they rise early to the beit din and the attendants call each one of the beit din by his name, and he responds; if he was among those who acquit, he responds: "I was one who acquits, and now also I acquit," and they accept him. And if he responds: "I was one who acquits, and now I convict," they do not accept him [ibid.], for it has already been explained in siman 18 that until the actual conclusion of the judgment, they do not allow one to change from merit to liability, see there. And the one who convicts, if he says: "I was one who convicts, and now also I convict," they do not protest against him and they accept him, and certainly if he says: "now I acquit." And if they forgot their reasons that they stated, each one according to his judgment, the scribes of the judges remind them, for it has already been explained in siman 1 that for every Sanhedrin there were two scribes of the judges, and they write the reasons of those who acquit and the reasons of those who convict. And they begin his judgment; if they found merit for him, they acquitted him, and if they needed to add judges, such as when one says "I do not know," they add. And if those who convict were in the majority by two opinions, they take him out to be executed according to his liability in one of the four deaths of beit din. And the place of execution was outside the beit din and far from the beit din so that the beit din should not appear as murderers, as it is written: "Bring forth the one who cursed to the outside of the camp." And the measure of the distance from the beit din was not explained in the Gemara, and Rashi explained: "somewhat far." And the Rambam wrote that it appears to him based on reasoning that it was six mil away, like it was between the beit din of Moses our teacher, which was before the entrance of the Tent of Meeting, and the camp of Israel. And when they take him out from the beit din to die, one stands at the entrance of the beit din with scarves in his hand, and the horse with a rider is far from him, and a herald goes out before him: "So-and-so is going out to be executed with such-and-such a death because he committed such-and-such a transgression in such-and-such a place at such-and-such a time, and so-and-so and so-and-so are his witnesses; whoever knows merit for him, let him come and teach concerning him." If one said: "I have something to teach for his merit," this one waves the scarves in his hand, which is like a flag, and the rider on the horse runs and brings the defendant back to the beit din, and they hear the merit; if there is substance in it, they acquit him, and if not, he returns and goes out to be executed. And if he himself said: "I have something to teach for my own merit," even if there is no substance in his words, they bring him back twice, for perhaps due to fear his arguments were blocked, and when he returns to the beit din his mind will be settled and he will state a reason. And if they brought him back and no substance was found in his words, they take him out a third time. If he said on the third time: "I have something to teach for my own merit," if there is substance in his words, they bring him back even many times; therefore, they hand over to him two Torah scholars who hear his words on the way; if there is substance in his words, they bring him back, and if not, they do not bring him back. And the Rambam, of blessed memory, wrote that his witnesses are the ones who kill him in any death for which he is liable [chapter 13 of Sanhedrin], and a murderer whose witnesses did not kill him, they are obligated to put him to death by the hand of any person. Thus far his words. And it appears that the Rambam, of blessed memory, learned it from stoning, as it is written regarding it: "the hand of the witnesses shall be upon him first," etc., and he learned from this for all those liable for the deaths of beit din. And I wonder, for in chapter 1 of Murderer he ruled that it is a mitzvah for the blood redeemer to kill the murderer. And see what I have written with the help of Heaven in siman 425, section 2.
כשנמצאו כל דברי העדים מכוונים פותחין הסנהדרין לבעל העבירה בזכות כמ"ש בסי' י"ח ואומרים לו אם לא חטאת אל תירא מדבריהם ובירושלמי מבואר דהפתיחה לזכות הוא שאומרים וכי אפשר שזה הרג את הנפש ודנין הסנהדרין כל היום כולו אם מצאו לו זכות פטרוהו ואם לאו אין גומרין הדין לחובה היום אלא מלינין את הדין עד למחר שנאמר צדק ילין בה ואוסרין את החייב במאסר שלא יברח וכל הלילה מזדווגין הסנהדרין זוגות זוגות וממעטין במאכל ואין שותין יין ונושאין ונותנין בדבר כל הלילה כל אחד עם זוג שלו בענין עבירה זו אם היה רוצח נושאין ונותנין בפרשת רוצח ואם היה מגלה עריות בפרשת עריות [תוספתא פ"ט] ולמחרת משכימין לב"ד והחזנין קוראין לכל אחד מב"ד בשמו והוא משיב אם היה מן המזכין משיב מזכה הייתי ועכשיו ג"כ מזכה אני ומקבלין אותו ואם משיב מזכה הייתי ועכשיו מחייב אני אין מקבלין אותו [שם] דכבר נתבאר בסי' י"ח דעד גמר דין ממש אין מניחין לחזור מזכות לחובה ע"ש והמחייב אם אומר מחייב הייתי ועכשיו ג"כ מחייב אני אין מוחין בידו ומקבלין אותו וכ"ש אם אומר עכשיו מזכה אני ואם שכחו טעמיהם שאמרו כל אחד לפי הדין שלו סופרי הדיינים מזכירים אותם דכבר נתבאר בסי' א' דלכל סנהדרין היו שני סופרי הדיינין וכותבין טעמי המזכין וטעמי המחייבין ומתחילין בדינו אם מצאו לו זכות פטרוהו ואם הוצרכו להוסיף דיינים כגון שאחד אומר איני יודע מוסיפין ואם רבו המחייבין בשני דיעות מוציאין אותו להריגה כפי חיובו באחד מד' מיתות ב"ד ומקום ההריגה היה חוץ לב"ד ורחוק מב"ד כדי שלא יתראו ב"ד כרוצחין כמ"ש הוצא את המקלל אל מחוץ למחנה ושיעור הריחוק מב"ד לא נתבאר בגמרא ורש"י פי' רחוק קצת והרמב"ם כתב דנ"ל ע"פ סברא שהיה רחוק ששה מילין כמו שהיה בין ב"ד של משה רבינו שהיה לפני פתח אהל מועד ובין מחנה ישראל וכשמוציאין אותו מב"ד למות עומד אחד על פתח הב"ד והסודרין בידו והסוס עם רוכב רחוק ממנו וכרוז יוצא לפניו פלוני יוצא ליהרג במיתה פלונית על שעבר עבירה פלונית במקום פלוני בזמן פלוני ופלוני ופלוני עדיו מי שיודע לו זכות יבא וילמד עליו אמר אחד יש לי ללמד עליו זכות זה מניף בסודרין שבידו שהיא כמו דגל והרוכב על הסוס רץ ומחזיר את הנדון לב"ד ושומעין את הזכות אם נמצא בו ממש פוטרין אותו ואם לאו יחזור ויצא להריגה ואם אמר הוא בעצמו יש לי ללמד על עצמי זכות אע"פ שאין ממש בדבריו מחזירין אותו שני פעמים דשמא מפני הפחד נסתתמו טענותיו וכשיחזור לב"ד תתיישב דעתו ויאמר טעם ואם החזירוהו ולא נמצא ממש בדבריו מוציאין אותו פעם שלישית אמר בשלישית יש לי ללמד על עצמי זכות אם יש ממש בדבריו מחזירין אותו אפילו כמה פעמים לפיכך מוסרין לו שני ת"ח ששומעין דבריו בדרך אם יש ממש בדבריו מחזירין אותו ואם לאו אין מחזירין אותו וכתב הרמב"ם ז"ל דעדיו הם ההורגים בכל מיתה שיתחייב בה [פי"ג מסנה'] ורוצח שלא הרגוהו עדיו חייבין להמיתו ביד כל אדם עכ"ל ונראה שלמדה הרמב"ם ז"ל מסקילה דכתיב ביה יד העדים תהיה בו וגו' ולמד מזה לכל חייבי מיתות ב"ד ותמיהני דבפ"א מרוצח פסק דמצוה ביד גואל הדם להרוג את הרוצח ועיי' מ"ש בס"ד בסי' תכ"ה סעי' ב':