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.
tirmidhi:1032Abū ʿAmmār al-Ḥusayn b. Ḥurayth > Muḥammad b. Yazīd al-Wāsiṭī > Ismāʿīl b. Muslim al-Makkī > Abū al-Zubayr > Jābir

The Prophet said: "The child is not prayed over, nor does he inherit, nor is he inherited from until one is sure he was alive at birth."  

الترمذي:١٠٣٢حَدَّثَنَا أَبُو عَمَّارٍ الْحُسَيْنُ بْنُ حُرَيْثٍ حَدَّثَنَا مُحَمَّدُ بْنُ يَزِيدَ الْوَاسِطِيُّ عَنْ إِسْمَاعِيلَ بْنِ مُسْلِمٍ الْمَكِّيِّ عَنْ أَبِي الزُّبَيْرِ عَنْ جَابِرٍ

عَنِ النَّبِيِّ ﷺ قَالَ الطِّفْلُ لاَ يُصَلَّى عَلَيْهِ وَلاَ يَرِثُ وَلاَ يُورَثُ حَتَّى يَسْتَهِلَّ  

قَالَ أَبُو عِيسَى هَذَا حَدِيثٌ قَدِ اضْطَرَبَ النَّاسُ فِيهِ فَرَوَاهُ بَعْضُهُمْ عَنْ أَبِي الزُّبَيْرِ عَنْ جَابِرٍ عَنِ النَّبِيِّ ﷺ مَرْفُوعًا وَرَوَى أَشْعَثُ بْنُ سَوَّارٍ وَغَيْرُ وَاحِدٍ عَنْ أَبِي الزُّبَيْرِ عَنْ جَابِرٍ مَوْقُوفًا وَرَوَى مُحَمَّدُ بْنُ إِسْحَاقَ عَنْ عَطَاءِ بْنِ أَبِي رَبَاحٍ عَنْ جَابِرٍ مَوْقُوفًا وَكَأَنَّ هَذَا أَصَحُّ مِنَ الْحَدِيثِ الْمَرْفُوعِ وَقَدْ ذَهَبَ بَعْضُ أَهْلِ الْعِلْمِ إِلَى هَذَا قَالُوا لاَ يُصَلَّى عَلَى الطِّفْلِ حَتَّى يَسْتَهِلَّ وَهُوَ قَوْلُ سُفْيَانَ الثَّوْرِيِّ وَالشَّافِعِيِّ

See similar narrations below:

Collected by Nasāʾī's Kubrá, Suyūṭī
nasai-kubra:6324Yaḥyá b. Mūsá al-Balkhī > Shabābah b. Sawwār > al-Mughīrah b. Muslim > Abū al-Zubayr > Jābir

“If a child utters a sound (after being born), the funeral prayer should be offered for him and (his relatives) may inherit from him.” (Using translation from Ibn Mājah 1508)   

الكبرى للنسائي:٦٣٢٤أَخْبَرَنَا يَحْيَى بْنُ مُوسَى الْبَلْخِيُّ قَالَ حَدَّثَنَا شَبَابَةُ بْنُ سَوَّارٍ قَالَ حَدَّثَنَا الْمُغِيرَةُ بْنُ مُسْلِمٍ عَنْ أَبِي الزُّبَيْرِ عَنْ جَابِرٍ

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