Sunan Ibn Majah, Book 6, Hadith 76 (Ibn Majah 1508)

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.”