Translation
(23) Chapters on Shares of Inheritance
كتاب الفرائض
(17) Chapter: If a newborn cries, he is an heir
(17) باب إِذَا اسْتَهَلَّ الْمَوْلُودُ وَرِثَ
Sunan Ibn Majah 2750 
It was narrated from Jabir that the Messenger of Allah (ﷺ) said:
“If the child has cired, the (funeral) prayer should be offered for him (if he dies) and he is an heir.”
حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا الرَّبِيعُ بْنُ بَدْرٍ، حَدَّثَنَا أَبُو الزُّبَيْرِ، عَنْ جَابِرٍ، قَالَ قَالَ رَسُولُ اللَّهِ صلى الله عليه وسلم ‏ "‏ إِذَا اسْتَهَلَّ الصَّبِيُّ صُلِّيَ عَلَيْهِ وَوَرِثَ ‏"‏ ‏.‏
Grade :  Da’if (Darussalam)
Reference : Sunan Ibn Majah 2750
In-book reference : Book 23, Hadith 32
English translation : Vol. 4, Book 23, Hadith 2750