It was narrated from Jabir that the Messenger of Allah (ﷺ) said: “If the child has cired, the (funeral) prayer should be offered for him (if he dies) and he is an heir.”
It was narrated from Jabir bin ‘Abdullah and Miswar bin Makhrumah that the Messenger of Allah (ﷺ) said: “No child inherits until he raises his voice or cries.”