The Shaykh (Al-Mufid), may Allah سبحانه وتعالى have mercy on him, said: “And there is no prayer (Salat Al Mayyit), according to the family of (Prophet) Muhammad صلى الله عليه وعلى آله وسلم, upon one who does not comprehend the prayer”. (meaning young children)
Commentary #2