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.
Ka ce: "Ku zo, in karanta abin da Ubangijinku Ya haramta." wãjibi ne a kanku kada ku yi shirkin kõme da Shi, kuma ga mahaifa biyu (ku kyautata) kyautatãwa, kuma kada ku kashe ɗiyanku sabõda talauci, Mũ ne Muke azurta ku, kũ da su, kuma kada ku kusanci abũbuwa alfãsha, abin da ya bayyana daga gare ta da abin da ya ɓõyu, kada ku kashe rai wanda Allah Ya haramta, fãce da hakki. Wannan ne (Allah) Ya yi muku wasiyya da Shi: Tsammãninku, kunã hankalta.
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.