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

It wasnarrated from Jabir that the Messenger of Allah (PBUH) said: “If thechild has cired, the (funeral) prayer should be offered forhim (ifhe dies) and he is an heir.” Translation Not Available

Book Ref: Sunan Ibn Majah Book 23 Hadith 2750
Web Ref:  Sunan Ibn Majah Vol 4 Book 23 Hadith 2750