Answer:
There is a passage in the Old Testament that talks about this. Here it is (World English Bible translation)…
Exodus 21:22-23 “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. But if any harm follows, then you must take life for life,”
I think that is probably what you were referring to
Pastor Brad