Scholars agree it is forbidden after the soul is breathed into the child (taught to be 120 days) unless the mother's life is in danger. Before that, they differ: some forbid it unless there is a real need, and others allow it for a valid reason before 40 days. The Quran forbids killing children (17:31, 6:151). Ask a scholar and a trusted doctor.
Say, "Come, I will recite what your Lord has prohibited to you. [He commands] that you not associate anything with Him, and to parents, good treatment, and do not kill your children out of poverty; We will provide for you and them. And do not approach immoralities - what is apparent of them and what is concealed. And do not kill the soul which Allah has forbidden [to be killed] except by [legal] right. This has He instructed you that you may use reason."
This is general information, not a fatwa. For your own situation, ask a qualified scholar.
Questions about halal and haram
Is abortion permitted?
Scholars agree it is forbidden after the soul is breathed into the child (taught to be 120 days) unless the mother's life is in danger. Before that, they differ: some forbid it unless there is a real need, and others allow it for a valid reason before 40 days. The Quran forbids killing children (17:31, 6:151). Ask a scholar and a trusted doctor.