Umar bin Khattab reported,

He asked the people about the ruling of the Prophet ﷺ regarding this matter, namely the unborn child. Haml bin Malik bin Nabighah stood up and said, "I had two wives, and one of them struck the other with a tent pole, killing her and her unborn child. The Messenger of Allah ﷺ ruled that the compensation for the unborn child was a slave, male or female, and that she be put to death in retaliation for the woman she killed."

Ibn Majah 2641

Sahih

حدثنا أحمد بن سعيد الدارمي حدثنا أبو عاصم أخبرني ابن جريج حدثني عمرو بن دينار أنه سمع طاوسا عن ابن عباس

عن عمر بن الخطاب

أنه نشد الناس قضاء النبي ﷺ في ذلك يعني في الجنين فقام حمل بن مالك بن النابغة فقال كنت بين امرأتين لي فضربت إحداهما الأخرى بمسطح فقتلتها وقتلت جنينها فقضى رسول الله ﷺ في الجنين بغرة عبد وأن تقتل بها

ابن ماجه 2641صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Ibn Majah
Book
Blood money
Chapter
Compensation for the fetus
Numbering
Darussalam 2641
Ibn Majah 2641