The Rambam · Sefer Shoftim
הלכות סנהדרין והעונשין המסורין להם ט״זThe Sanhedrin and the Penalties within Their Jurisdiction 16
Chapter 16 of 26 in The Sanhedrin and the Penalties within Their Jurisdiction — 12 halachot
Halacha 1א׳
כְּשֵׁם שֶׁמִּצְוָה לְהָמִית אֶת הַמְחֻיָּב מִיתָה כָּךְ מִצְוַת עֲשֵׂה לְהַלְקוֹת אֶת הַמְחֻיָּב מַלְקוֹת. שֶׁנֶּאֱמַר (דברים כה ב) "וְהִפִּילוֹ הַשֹּׁפֵט וְהִכָּהוּ לְפָנָיו". וְאַף עַל פִּי שֶׁמַּלְקוֹת בִּשְׁלֹשָׁה בִּמְקוֹם מִיתָה הִיא עוֹמֶדֶת:
Just as it is a commandment to put to death one who is liable to death, so it is a positive commandment to flog one who is liable to lashes, as it is said (Deuteronomy 25:2), "the judge shall cause him to lie down and to be beaten before his face." And even though lashes are by three, they stand in the place of death.
Halacha 2ב׳
מַלְקִין בַּזְּמַן הַזֶּה בְּכָל מָקוֹם מִן הַתּוֹרָה בִּפְנֵי שְׁלֹשָׁה סְמוּכִין אֲבָל לֹא בִּפְנֵי הֶדְיוֹטוֹת:
In this time they flog by Torah law in every place before three who are ordained, but not before laymen.
Halacha 3ג׳
וְכָל מַלְקִיּוֹת שֶׁמַּלְקִין דַּיָּנֵי חוּצָה לָאָרֶץ בְּכָל מָקוֹם אֵינָהּ אֶלָּא מַכַּת מַרְדּוּת:
And all the lashes that the judges outside the Land administer in every place are nothing but makkat mardut, the lashes for rebelliousness.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: rendered from the Hebrew for this app — our own, not a borrowed translation