Abu Hurairah reported,

The Messenger of Allah ﷺ ruled regarding the unborn child of a woman from Banu Lihyan that was miscarried stillborn that the compensation was a male or female slave. Then the woman against whom the ruling of the slave compensation had been made passed away, so the Messenger of Allah ﷺ ruled that her inheritance went to her sons and her husband, and that her blood-money was the responsibility of her paternal male relatives.

Tirmidhi 2111

Sahih

حدثنا قتيبة حدثنا الليث عن ابن شهاب عن سعيد بن المسيب

عن أبي هريرة

أن رسول الله ﷺ قضى في جنين امرأة من بني لحيان سقط ميتا بغرة عبد أو أمة ثم إن المرأة التي قضي عليها بالغرة توفيت فقضى رسول الله ﷺ أن ميراثها لبنيها وزوجها وأن عقلها على عصبتها

الترمذي 2111صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Obligatory duties
Chapter
Wealth goes to the heirs and blood money is upon the male relatives
Numbering
Darussalam 2111
Tirmidhi 2111