The Rambam · Sefer Nezikim
הלכות נזקי ממון י״בDamages to Property 12
Chapter 12 of 14 in Damages to Property — 22 halachot
Halacha 1א׳
הַחוֹפֵר בּוֹר בִּרְשׁוּת הָרַבִּים וְנָפַל לְתוֹכוֹ שׁוֹר אוֹ חֲמוֹר וּמֵת אֲפִלּוּ הָיָה הַבּוֹר מָלֵא גִּזּוֹת שֶׁל צֶמֶר וְכַיּוֹצֵא בָּהֶן הֲרֵי בַּעַל הַבּוֹר חַיָּב לְשַׁלֵּם נֵזֶק שָׁלֵם שֶׁנֶּאֱמַר (שמות כא לד) "בַּעַל הַבּוֹר יְשַׁלֵּם". וְאֶחָד שׁוֹר וַחֲמוֹר אוֹ שְׁאָר מִינֵי בְּהֵמָה חַיָּה וְעוֹף לֹא נֶאֱמַר (שמות כא לג) "שׁוֹר וַחֲמוֹר" אֶלָּא בָּהוֹוֶה:
One who digs a pit in the public domain, and an ox or an ass fell into it and died — even if the pit was full of fleeces of wool and the like — the owner of the pit is obliged to pay full damage, as it is said (Exodus 21:34), "the owner of the pit shall make it good." And it is all one, an ox or an ass or other kinds of cattle, wild beasts and birds; Scripture said (Exodus 21:33), "an ox or an ass," only of the usual case.
Halacha 2ב׳
אֶחָד הַחוֹפֵר בּוֹר בִּרְשׁוּת הָרַבִּים אוֹ הַחוֹפֵר בּוֹר בִּרְשׁוּתוֹ וּפִתְחוֹ לִרְשׁוּת הָרַבִּים אוֹ פָּתַח לִרְשׁוּת חֲבֵרוֹ אוֹ שֶׁחָפַר וּפָתַח לִרְשׁוּתוֹ וְהִפְקִיר רְשׁוּתוֹ וְלֹא הִפְקִיר בּוֹרוֹ הֲרֵי זֶה חַיָּב בִּנְזָקָיו. אֲבָל אִם הִפְקִיר רְשׁוּתוֹ וּבוֹרוֹ אוֹ שֶׁהִפְקִיר בּוֹרוֹ שֶׁבִּרְשׁוּתוֹ אוֹ הִקְדִּישׁוֹ הֲרֵי זֶה פָּטוּר שֶׁנֶּאֱמַר (שמות כא לד) "בַּעַל הַבּוֹר יְשַׁלֵּם" מִי שֶׁיֵּשׁ לוֹ בְּעָלִים וְזֶה הֶפְקֵר וּבַתְּחִלָּה בִּרְשׁוּת חָפַר מִפְּנֵי שֶׁחָפַר בִּרְשׁוּתוֹ:
It is all one, one who digs a pit in the public domain, or one who digs a pit in his own domain and opens it onto the public domain, or opens it onto his fellow's domain, or who dug it and opened it onto his own domain and renounced his domain but did not renounce his pit — he is liable for its damages. But if he renounced his domain and his pit, or renounced his pit that is in his domain, or consecrated it, he is exempt, as it is said (Exodus 21:34), "the owner of the pit shall make it good" — one that has an owner; and this is ownerless, and at first he dug it by right, because he dug it in his own domain.
Halacha 3ג׳
אֶחָד הַחוֹפֵר בּוֹר אוֹ שֶׁנֶּחְפַּר מֵאֵלָיו אוֹ שֶׁחֲפָרַתּוּ בְּהֵמָה אוֹ חַיָּה הוֹאִיל וְהוּא חַיָּב לְמַלְּאוֹתוֹ אוֹ לְכַסּוֹתוֹ וְלֹא עָשָׂה הֲרֵי זֶה חַיָּב בִּנְזָקָיו. ואֶחָד הַחוֹפֵר אוֹ הַלּוֹקֵחַ אוֹ שֶׁנִּתַּן לוֹ בְּמַתָּנָה שֶׁנֶּאֱמַר (שמות כא לד) "בַּעַל הַבּוֹר יְשַׁלֵּם" מִי שֶׁיֵּשׁ לוֹ בְּעָלִים מִכָּל מָקוֹם:
It is all one, one who digs a pit, or one that was dug of itself, or that cattle or a wild beast dug — since he is obliged to fill it or to cover it and did not, he is liable for its damages. And it is all one, the one who dug it, or the buyer, or one to whom it was given as a gift, as it is said (Exodus 21:34), "the owner of the pit shall make it good" — whoever owns it, in whatever way.
Mishneh Torah, Torat Emet 363 edition, via Sefaria — public domain
English: rendered from the Hebrew for this app — our own, not a borrowed translation