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."
عَنِ النَّبِيِّ ﷺ قَالَ الطِّفْلُ لاَ يُصَلَّى عَلَيْهِ وَلاَ يَرِثُ وَلاَ يُورَثُ حَتَّى يَسْتَهِلَّ
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."
عَنِ النَّبِيِّ ﷺ قَالَ الطِّفْلُ لاَ يُصَلَّى عَلَيْهِ وَلاَ يَرِثُ وَلاَ يُورَثُ حَتَّى يَسْتَهِلَّ
“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)
عَنِ النَّبِيِّ ﷺ قَالَ «الصَّبِيُّ إِذَا اسْتَهَلَّ وَرِثَ وَصُلِّيَ عَلَيْهِ»
"الطِّفْل لَا يُصلَّى عَلَيهِ ولا يُورَث وَلا يَرِث حَتَّى يَسْتهِل ".