Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) says: "When a newborn cries out, he inherits and the funeral prayer is offered over him."
This is mawquf (the Companion's own statement).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6782