בַּ֤עַל הַבּוֹר֙ יְשַׁלֵּ֔ם כֶּ֖סֶף יָשִׁ֣יב לִבְעָלָ֑יו וְהַמֵּ֖ת יִֽהְיֶה־לּֽוֹ׃ (ס)
the owner of the pit shall make it good; he shall give money unto the owner of them, and the dead beast shall be his.
Read Jewish philosophical commentary on Exodus 21:34: and classical philosophical sources.