Abu Hurairah reported,

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

Azami 6042

Sahih

عن أبي هريرة أنه قال

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

الأعظمي 6042صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Obligatory duties
Section
Wealth being for the heirs and blood money being upon the paternal relatives
Numbering
Jami al-Kamil 6042 (2nd edition)
Azami 6042