Exodus 21:22-24 WEB

22 "If men fight and hurt a pregnant woman so that she gives birth prematurely, and yet no harm follows, he shall be surely fined as much as the woman's husband demands and the judges allow.
23 But if any harm follows, then you must take life for life,
24 eye for eye, tooth for tooth, hand for hand, foot for foot,