Sunan Ibn Majah
It was narrated from Jabir bin ‘Abdullah that the Messenger of Allah (ﷺ) said: “If a child utters a sound (after being born), the funeral prayer should be offered for him and (his relatives) may inherit from him.”
حَدَّثَنَا هِشَامُ بْنُ عَمَّارٍ، حَدَّثَنَا الرَّبِيعُ بْنُ بَدْرٍ، حَدَّثَنَا أَبُو الزُّبَيْرِ، عَنْ جَابِرِ بْنِ عَبْدِ اللَّهِ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ " إِذَا اسْتَهَلَّ الصَّبِيُّ صُلِّيَ عَلَيْهِ وَوُرِثَ " .
Grade: Da’if (Darussalam)
Reference