It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that it is established from the Sunnah that a newborn neither inherits nor is inherited from until it cries out. I found it like this; and Yahya bin Sa'id narrated from Sa'id bin al-Musayyib (may Allah have mercy on him) that the Messenger of Allah (peace and blessings be upon him) said: "The child does not inherit until it cries out," and al-istihlal means: "shouting, sneezing or crying," and his blood money will not be paid in full. Sa'id (may Allah have mercy on him) said: No funeral prayer is to be offered over him.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الفرائض / 12486