"If men who are fighting hit a pregnant woman and she gives birth prematurely but there is no serious injury, the offender must be fined whatever the woman's husband demands1 and the court allows.
References for Exodus 21:22
But if there is serious injury, you are to take life for life,2
References for Exodus 21:23
eye for eye, tooth for tooth,3 hand for hand, foot for foot,
References for Exodus 21:24
burn for burn, wound for wound, bruise for bruise.