Prayer for a dead muslim.
Useful information : It is obligatory to offer Namaz-e-Mayyit for every Muslim, as well as for a Muslim child if it has completed 6 years of its age.
If a child had not completed 6 years of its age, but it was a discerning child who knew what Namaz was, then as an obligatory precaution, Namaz-e-Mayyit for it should be offered. If it did not know of Namaz, then the prayers may be offered with the Niyyat of 'Raja'. However, to offer Namaz-e-Mayyit for a still born child is not Mustahab.
Namaz-e-Mayyit should be offered after the dead body has been given Ghusl, Hunnut and Kafan and if it is offered before or during the performance of these acts, it does not suffice, even if it is due to forgetfulness or on account of not knowing the rule.