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