Sayyiduna al-Miswar bin Makhramah (may Allah be pleased with him) says that Sayyiduna Umar (may Allah be pleased with him) sought counsel about a woman's miscarriage being caused. Sayyiduna al-Mughirah bin Shu'bah (may Allah be pleased with him) said: "The ruling of the Prophet (peace and blessings be upon him) concerning it is (to give) a male slave or a female slave." He asked: "Is there any witness to this?" So Sayyiduna Muhammad bin Maslamah (may Allah be pleased with him) also testified to it.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الديات / 16411