The Prophet (ﷺ) said: When an infant has raised its voice (and then dies), it will be treated as an heir.
Sunan Abi Dawud Book 19, Hadith 36