The Rambam · Sefer Nezikim
הלכות רוצח ושמירת נפש ו׳Murderer and the Preservation of Life 6
Chapter 6 of 13 in Murderer and the Preservation of Life — 15 halachot
Halacha 1א׳
שְׁלֹשָׁה הֵם הַהוֹרְגִים בְּלֹא כַּוָּנָה:
Those who kill without intent are of three kinds.
Halacha 2ב׳
יֵשׁ הוֹרֵג בִּשְׁגָגָה וְהַעֲלָמָה גְּמוּרָה וְזֶהוּ שֶׁנֶּאֱמַר בּוֹ (שמות כא יג) "וַאֲשֶׁר לֹא צָדָה". וְדִינוֹ שֶׁיִּגְלֶה לְעָרֵי מִקְלָט וְיִנָּצֵל כְּמוֹ שֶׁבֵּאַרְנוּ:
There is one who kills in error and in complete unawareness, and this is the one of whom it is said (Exodus 21:13), "And if a man lie not in wait." His law is that he goes into exile to the cities of refuge and is saved, as we have explained.
Halacha 3ג׳
וְיֵשׁ הוֹרֵג וְתִהְיֶה הַשְּׁגָגָה קָרוֹב לְאֹנֶס וְהוּא שֶׁיֶּאֱרַע בְּמִיתַת זֶה מְאֹרָע פֶּלֶא שֶׁאֵינוֹ מָצוּי בְּרֹב מְאֹרְעוֹת בְּנֵי אָדָם. וְדִינוֹ שֶׁהוּא פָּטוּר מִן הַגָּלוּת. וְאִם הֲרָגוֹ גּוֹאֵל הַדָּם נֶהֱרָג עָלָיו:
And there is one who kills where the error is close to duress, namely where in this man's death there occurred an extraordinary event, such as is not found in most of the occurrences of men. His law is that he is exempt from exile; and if the blood-avenger killed him, the avenger is put to death for him.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: rendered from the Hebrew for this app — our own, not a borrowed translation