The Rambam · Sefer Nezikim
הלכות רוצח ושמירת נפש א׳Murderer and the Preservation of Life 1
Chapter 1 of 13 in Murderer and the Preservation of Life — 16 halachot
Halacha 1א׳
כָּל הוֹרֵג נֶפֶשׁ בֶּן אָדָם עוֹבֵר בְּלֹא תַּעֲשֶׂה שֶׁנֶּאֱמַר (שמות כ יג) (דברים ה יז) "לֹא תִרְצָח". וְאִם רָצַח בְּזָדוֹן בִּפְנֵי עֵדִים מִיתָתוֹ בְּסַיִף שֶׁנֶּאֱמַר (שמות כא כ) "נָקֹם יִנָּקֵם". מִפִּי הַשְּׁמוּעָה לָמְדוּ שֶׁזּוֹ מִיתַת סַיִף. בֵּין שֶׁהָרַג אֶת חֲבֵרוֹ בְּבַרְזֶל בֵּין שֶׁשְּׂרָפוֹ בָּאֵשׁ מִיתָתוֹ בְּסַיִף:
Anyone who kills a human being transgresses a negative commandment, as it is said (Exodus 20:13), "You shall not murder." And if he murdered wilfully before witnesses, his death is by the sword, as it is said (Exodus 21:20), "He shall surely be punished"; from the received tradition they learned that this is death by the sword. Whether he killed his fellow with iron or burned him with fire, his death is by the sword.
Halacha 2ב׳
מִצְוָה בְּיַד גּוֹאֵל הַדָּם [לַהֲרֹג אֶת הָרוֹצֵחַ] שֶׁנֶּאֱמַר (במדבר לה יט) "גֹּאֵל הַדָּם הוּא יָמִית אֶת הָרֹצֵחַ". וְכָל הָרָאוּי לִירֻשָּׁה הוּא גּוֹאֵל הַדָּם. לֹא רָצָה גּוֹאֵל הַדָּם אוֹ שֶׁלֹּא הָיָה יָכוֹל לַהֲמִיתוֹ אוֹ שֶׁאֵין לוֹ גּוֹאֵל דָּם בֵּית דִּין מְמִיתִין אֶת הָרוֹצֵחַ בְּסַיִף:
It is a commandment upon the blood-avenger to kill the murderer, as it is said (Numbers 35:19), "The avenger of blood shall himself put the murderer to death." And everyone who is fit to inherit the slain man is the blood-avenger. If the blood-avenger did not wish to, or could not put him to death, or the slain man has no blood-avenger, the court puts the murderer to death by the sword.
Halacha 3ג׳
הָאָב שֶׁהָרַג אֶת בְּנוֹ. אִם הָיָה בֶּן לַנֶּהֱרָג הֲרֵי זֶה הוֹרֵג אֲבִי אָבִיו מִפְּנֵי שֶׁהוּא גּוֹאֵל. וְאִם אֵין לוֹ בֵּן אֵין אֶחָד מִן הָאַחִין נַעֲשֶׂה גּוֹאֵל הַדָּם לְהָמִית אֶת אָבִיו אֶלָּא בֵּית דִּין מְמִיתִין אוֹתוֹ. וְאֶחָד הַזָּכָר וְאֶחָד הַנְּקֵבָה בִּגְאֻלַּת הַדָּם:
A father who killed his son: if the slain man had a son, he kills his father's father, because he is the avenger. And if he had no son, none of the brothers becomes the blood-avenger to put his own father to death; rather the court puts him to death. And male and female are alike in avenging blood.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: rendered from the Hebrew for this app — our own, not a borrowed translation