8וְכֵיצַד דָּנִין זָקֵן מַמְרֵא. בְּעֵת שֶׁיִּפָּלֵא דָּבָר וְיוֹרֶה בּוֹ חָכָם הַמַּגִּיעַ לְהוֹרָאָה בֵּין בְּדָבָר שֶׁיֵּרָאֶה בְּעֵינָיו בֵּין בְּדָבָר שֶׁקִּבֵּל מֵרַבּוֹתָיו. הֲרֵי הוּא וְהַחוֹלְקִין עִמּוֹ עוֹלִין לִירוּשָׁלַיִם וּבָאִין לְבֵית דִּין שֶׁעַל פֶּתַח הַר הַבַּיִת. אוֹמְרִים לָהֶן בֵּית דִּין כָּךְ הוּא הַדִּין. אִם שָׁמַע וְקִבֵּל מוּטָב וְאִם לָאו בָּאִין כֻּלָּן לְבֵית דִּין שֶׁעַל פֶּתַח הָעֲזָרָה וְאוֹמְרִים לָהֶם גַּם הֵם כָּךְ הוּא הַדִּין. אִם קִבְּלוּ יֵלְכוּ לָהֶן וְאִם לָאו כֻּלָּן בָּאִין לְבֵית דִּין הַגָּדוֹל לְלִשְׁכַּת הַגָּזִית שֶׁמִּשָּׁם תּוֹרָה יוֹצֵאת לְכָל יִשְׂרָאֵל שֶׁנֶּאֱמַר (דברים יז י) "מִן הַמָּקוֹם הַהוּא אֲשֶׁר יִבְחַר ה'". וּבֵית דִּין אוֹמֵר לָהֶם כָּךְ הוּא הַדִּין וְיוֹצְאִין כֻּלָּן. חָזַר זֶה הֶחָכָם לְעִירוֹ וְשָׁנָה וְלִמֵּד כְּדֶרֶךְ שֶׁהוּא לָמוּד הֲרֵי זֶה פָּטוּר. הוֹרָה לַעֲשׂוֹת אוֹ שֶׁעָשָׂה כְּהוֹרָאָתוֹ חַיָּב מִיתָה וְאֵינוֹ צָרִיךְ הַתְרָאָה. אֲפִלּוּ נָתַן טַעַם לִדְבָרָיו אֵין שׁוֹמְעִין לוֹ אֶלָּא כֵּיוָן שֶׁבָּאוּ עֵדִים שֶׁעָשָׂה כְּהוֹרָאָתוֹ אוֹ שֶׁהוֹרָה לַאֲחֵרִים לַעֲשׂוֹת גּוֹמְרִין דִּינוֹ לְמִיתָה בְּבֵית דִּין שֶׁבְּעִירוֹ. וְתוֹפְסִין אוֹתוֹ וּמַעֲלִין אוֹתוֹ מִשָּׁם לִירוּשָׁלַיִם. וְאֵין מְמִיתִין אוֹתוֹ בְּבֵית דִּין שֶׁבְּעִירוֹ וְלֹא בְּבֵית דִּין הַגָּדוֹל שֶׁיָּצָא חוּץ לִירוּשָׁלַיִם אֶלָּא מַעֲלִין אוֹתוֹ לְבֵית דִּין הַגָּדוֹל שֶׁבִּירוּשָׁלַיִם. וְעַד הָרֶגֶל מְשַׁמְּרִין אוֹתוֹ וְחוֹנְקִין אוֹתוֹ בָּרֶגֶל. שֶׁנֶּאֱמַר (דברים יג יב) "וְכָל יִשְׂרָאֵל יִשְׁמְעוּ וְיִרָאוּ" מִכְּלָל שֶׁצָּרִיךְ הַכְרָזָה. וְאַרְבָּעָה צְרִיכִין הַכְרָזָה. זָקֵן מַמְרֵא. וְעֵדִים זוֹמְמִין. וְהַמֵּסִית. וּבֵן סוֹרֵר וּמוֹרֶה. שֶׁהֲרֵי בְּכֻלָּן נֶאֱמַר יִשְׁמְעוּ וְיִרָאוּ:
How is the law applying to a rebellious elder adjudicated? When a matter is undecided because of its difficulty and a sage who is erudite enough to issue rulings whether with regard to a matter which he arrived at through his own reasoning or which he received from his teachers. He and the sages who differ with him ascend to Jerusalem and come to the court which holds sessions at the entrance to the Temple Mount. The court tells them: "This is the law." If the elder listens and accepts the ruling, it is desirable. If not, they all go to the court which holds sessions at the entrance to the Temple Courtyard. They also say: "This is the law." If the elder listens and accepts the ruling, they go their ways. If not, they all go to the Supreme Sanhedrin in the Chamber of Hewn Stone from which the Torah emanates to the entire Jewish people, as Deuteronomy 17:10 states: "From that place which G-d has chosen." The Supreme Sanhedrin tell them: "This is the law" and they all depart. If the elder returns to his city and continues to interpret the law as he did previously and teaches this interpretation to others, he is not liable. If he gave a directive for action or acted according to his conception himself, he is liable for execution. There is no need for a warning. Even if he offers a rationale to explain his conduct, we do not heed him. Instead, once witnesses come and testify that he acted according to his own directive or that he directed others to perform a deed, we sentence him to death in his local court. We take hold of him and bring him from that place to Jerusalem. For we do not execute him in the presence of his local court, nor in the presence of the Supreme Sanhedrin who left Jerusalem, but instead, bring him to the Supreme Sanhedrin in Jerusalem. Until the next pilgrimage festival, he is kept under watch. During the pilgrimage festival, he is executed by strangulation, as implied by ibid.:13: "And all Israel shall hear and become fearful." This indicates that his execution must be announced. There are four transgressors whose execution must be announced publicly: a rebellious elder, lying witnesses, a person who entices others to worship idols, and a wayward and rebellious son. For with regard to all of them, the Torah states: "so that they will hear and become afraid."