Killing babies is something wished upon one’s enemies, and I don’t think that the Israelites who wrote those verses wanted anything to go OK for Babylon. And the Bible is likewise very clear that rape has consequences. The consequences might seem inappropriate to modern sensibilities, but they are definitely consequences.
“Thou shall not kill” - Exodus 20:13. No exception is made for babies.
There are certain passages, which no doubt someone will list soon, commanding mass killing during warfare in particular circumstances. But as far as giving law, the Bible is clearly against killing.
Also, concerning rape, the story of Amnon and Tamar in 2 Samuel 13: Amnon rapes Tamar, which is unequivocally depicted as bad. Tamar’s brother Absalom retaliates by killing Amnon.
Leviticus 20:2-5 clearly bans child sacrifice, as do numerous other passages.
There are times God authorizes such actions, well the baby killing part, even ripping pregnate woman open IIRC, don’t recall about rape, however that is for a specific time and place. The Bible does state that people sacrificed their children to Baal, a competing god who seemed to be cool with it, even desire it.
If the baby was doing something like witchcraft or committing adultery then it could be stoned, as could anyone doing such thing.
Some make the argument that since ‘life is in the breath’ that an in the womb child killed is not counted as murder (however it also says life is in the blood, that part they seem to ignore), however a lesser penalty is still mentioned for killing a child in the womb.
God slaughters an entire generation of Egyptian babies (because the Egyptian Pharaoh will not let Moses lead the people of Israel out of Egypt.)
I find this particularly disturbing because God obviously enjoys doing it.
In Exodus chapter 11 verse 10, Pharaoh is ready to release everyone. But God ‘hardens Pharaoh’s heart’ so that this genocide can take place.
Technically, the translation is “Thou shall not murder.” God accepted battlefield killing and capital punishment (like, for disobedient sons). If you’re fighting the enemies of God’s people (the Jews), I think God wouldn’t mind if you killed their babies. Outside of that, probably he’d frown on it.
I don’t think that the OT God would approve of rape. The general rule seems to be that sperm is meant to be only to be used for creating more Jews, and only with your wife, and anything outside of that is sinful. That said, I don’t think that it’s so much a matter that the writers of the OT would have cared too much from an ethical standpoint. The general feeling I got from most of the Laws, was that they had been written with the goal of making everything very simple to adjudicate in court. If you have children with another man’s wife, how does that child’s claim count against your wife’s children, when you die and they’re seeking your fortune? Well, you could come up with some complex rule set or just say, “Don’t do that.”, and make everything easier. So they chose to make it easier. Polygamy? Too difficult to deal with, so forbidden. Inheritence? Goes down the wife’s line since we know the kids are hers. Homosexuality? Doesn’t make new Jews, and we want those so we can keep expanding and taking over more land, so forbidden.
Rape has the potential to create offspring, so forbidden. Rape + murdering the victim is a loss of good Jewish sperm. Also forbidden.
God is King of King of Kings and the king of the Jews, as king he 1: sets laws and civil penalties, so as rule of law murder is not OK. 2: As military commander, so in authorizing war actions yes killing is allowed.
And so we get the modern day issue which has been interpreted as the commandment is thou shall not murder, but killing and thus being a soldier is allowed.
Wouldn’t put it past some people to try to blame and execute the child for the act of pedophilia.
It’s not even rape in a courtroom in the US either. It’s covered under different legal terms such as murder and kidnapping. Rape would require some forcing sexual contact against the will of the other, which you don’t describe here.