It was human who decided to write laws that permit abortion, therefore, it is not a homicide in some modern civil laws. Therefore, no punishment on earth.
However, God, who created us and created the universe, who created heaven and hell, he is the one who sets the ultimate laws, and according to him, a child in the mother’s womb is a person with all rights of a living one, and killing him/her is a sin.