Exodus 21:22-25

22 "When men get in a fight, and hit a pregnant woman so that her children are born [prematurely],a but there is no injury, the one who hit her must be fined as the woman's husband demands from him, and he must pay according to judicial assessment.
23 If there is an injury, then you must give life for life,
24 eye for eye, tooth for tooth, hand for hand, foot for foot,
25 burn for burn, bruise for bruise, wound for wound.