1 Samuel 15:2-3
2 This is what the Lord Almighty says: ‘I will punish the Amalekites for what they did to Israel when they waylaid them as they came up from Egypt. 3 Now go, attack the Amalekites and totally destroy all that belongs to them. Do not spare them; put to death men and women, children and infants, cattle and sheep, camels and donkeys.’”
Not only does God command the deaths of children and infants, he also makes no distinction between pregnant and non-pregnant women. By implication, obeying this command would have required the Hebrews to commit many abortions.
One defense I’ve often heard to the accusation that this was immoral of God is that God knew that when the Amalekite children grew up, they would try to exact vengeance against the Hebrews. Therefore they were part of the Amalekite evil that God was trying to destroy. But by this logic, one could argue that God might be working through couples choosing abortion to similarly arrange the future in accord with his will.
You could take any of history’s tyrants, for example, and argue that avoiding their evil could have been God’s will, and thus that aborting them would have been God working through the couple who chose the abortion and the doctor who performed it.
So if you believe that God prohibits abortion, how can you reconcile that with God’s actions in the Bible? There seems to be two alternatives: either God is guilty of murder because he commanded abortion, or abortion is not always murder because it might be the will of God.