Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
suyuti:1223a

The Prophet ﷺ said: When an infant has raised its voice (and then dies), it will be treated as an heir. (Using translation from Abū Dāʾūd 2920)   

السيوطي:١٢٢٣a

" إِذَا اسْتَهلَّ المولودُ وَرِث" .  

[د] أبو داود [ق] البيهقى في السنن عن أبي هريرة

See similar narrations below:

Collected by Abū Dāwūd, Dārimī
abudawud:2920Ḥusayn b. Muʿādh > ʿAbd al-Aʿlá > Muḥammad / Ibn Isḥāq > Yazīd b. ʿAbdullāh b. Qusayṭ > Abū Hurayrah

The Prophet ﷺ said: When an infant has raised its voice (and then dies), it will be treated as an heir.  

أبو داود:٢٩٢٠حَدَّثَنَا حُسَيْنُ بْنُ مُعَاذٍ حَدَّثَنَا عَبْدُ الأَعْلَى حَدَّثَنَا مُحَمَّدٌ يَعْنِي ابْنَ إِسْحَاقَ عَنْ يَزِيدَ بْنِ عَبْدِ اللَّهِ بْنِ قُسَيْطٍ عَنْ أَبِي هُرَيْرَةَ

عَنِ النَّبِيِّ ﷺ قَالَ إِذَا اسْتَهَلَّ الْمَوْلُودُ وُرِّثَ  

darimi:3172Yaʿlá > Muḥammad b. Isḥāq > ʿAṭāʾ > Jābir

[Machine] "When a newborn baby arrives, pray for them and inherit (the good qualities)."  

الدارمي:٣١٧٢حَدَّثَنَا يَعْلَى حَدَّثَنَا مُحَمَّدُ بْنُ إِسْحَاقَ عَنْ عَطَاءٍ عَنْ جَابِرٍ قَالَ

«إِذَا اسْتَهَلَّ الْمَوْلُودُ صُلِّيَ عَلَيْهِ وَوُرِثَ»