Sayyiduna Jabir (may Allah be pleased with him) says that the Messenger of Allah (peace and blessings be upon him) said: "Instead of slaughtering the fetus in the womb, slaughtering its mother suffices."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الضحايا / 19488