Abu Hurairah reported,

The Messenger of Allah ﷺ ruled regarding the unborn child of a woman from Banu Lahyan, who was delivered stillborn, that compensation be paid in the form of a male or female slave. Then the woman against whom the ruling of the slave-compensation was made passed away, and the Messenger of Allah ﷺ ruled that her inheritance went to her sons and her husband, while the blood-money was to be paid by her paternal male relatives.

Nasai 4821

Sahih

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

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

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

النسائي 4821صحيح
Contents
Reference
Commentary
Ayat
Collection
Sunan Nasai Sughra
Book
Sworn testimony
Chapter
Diyah for a woman's fetus
Numbering
Darussalam 4821
Nasai 4821