As in based off of their religious beliefs. It was apparently accepted by the Greek and Romans but I cannot find anything that says how the Egyptians viewed abortion. Did they view it as immoral or was it accepted?
Whilst there's always more to be said and more directly for your question.
This older answer by /u/kookingpot discussing contraceptives in ancient Egypt might help. It is an older answer and may not be up to current standards.