Exodus 21:20-30

20 `And when a man smiteth his man-servant or his handmaid, with a rod, and he hath died under his hand -- he is certainly avenged;
21 only if he remain a day, or two days, he is not avenged, for he [is] his money.
22 `And when men strive, and have smitten a pregnant woman, and her children have come out, and there is no mischief, he is certainly fined, as the husband of the woman doth lay upon him, and he hath given through the judges;
23 and if there is mischief, then thou hast given life for life,
24 eye for eye, tooth for tooth, hand for hand, foot for foot,
25 burning for burning, wound for wound, stripe for stripe.
26 `And when a man smiteth the eye of his man-servant, or the eye of his handmaid, and hath destroyed it, as a freeman he doth send him away for his eye;
27 and if a tooth of his man-servant or a tooth of his handmaid he knock out, as a freeman he doth send him away for his tooth.
28 `And when an ox doth gore man or woman, and they have died, the ox is certainly stoned, and his flesh is not eaten, and the owner of the ox [is] acquitted;
29 and if the ox is [one] accustomed to gore heretofore, and it hath been testified to its owner, and he doth not watch it, and it hath put to death a man or woman, the ox is stoned, and its owner also is put to death.
30 `If atonement is laid upon him, then he hath given the ransom of his life, according to all that is laid upon him;