Exodus 21:22

21: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.
-World English Bible

Other Translation

21:22 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].
-King James Version