Exodus 21:22

If men will have quarreled, and one of them has struck a pregnant woman, and as a result she miscarries, but she herself survives, he shall be subject to as much damage as the husband of the woman shall petition from him, or as arbitrators shall judge

Other versions

King James Version

If men strive, and hurt a woman with child, so that her fruit depart from her, and yet no mischief follow: he shall be surely punished, according as the woman's husband will lay upon him; and he shall pay as the judges determine.

English Standard Version

"When men strive together and hit a pregnant woman, so that her children come out, but there is no harm, the one who hit her shall surely be fined, as the woman's husband shall impose on him, and he shall pay as the judges determine.

New International Version

"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 demands and the court allows.