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.”
Hadith No. 1508
Sunan Ibn Majah
Gradings:
Al-Albani:
Sahih
Muhammad Fouad Abd al-Baqi:
Sahih