Sunan Abi Dawud, Hadith 4560

Narrated Abu Hurairah: About this story: Then the woman, against whom he decided that a male or female should be paid for her, died. The Messenger of Allah then gave judgement that her sons will inherit from her, and the bloodwit should be paid by her relatives on the father's side.

حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا اللَّيْثُ، عَنِ ابْنِ شِهَابٍ، عَنِ ابْنِ الْمُسَيَّبِ، عَنْ أَبِي هُرَيْرَةَ، فِي هَذِهِ الْقِصَّةِ قَالَ ثُمَّ إِنَّ الْمَرْأَةَ الَّتِي قَضَى عَلَيْهَا بِالْغُرَّةِ تُوُفِّيَتْ فَقَضَى رَسُولُ اللَّهِ صلى الله عليه وسلم بِأَنَّ مِيرَاثَهَا لِبَنِيهَا وَأَنَّ الْعَقْلَ عَلَى عَصَبَتِهَا ‏.‏

sunnah.com

also referenced under: Hadith 4577 (DarusSalam)