According to the Shariah, when a child passes away in the womb of the mother or dies before the head and the chest comes out in a normal birth, or before the abdomen (navel) comes out in a breach birth, it is regarded as still born. (Tahtawi Page 327 Qadeemi)
The still born child should be washed, given a name, placed in a cloth and be buried in the graveyard. The same rule applies in a miscarriage and some limbs of the child are visible. (Ibid) It is hoped that such a child will intercede for the parents on the day of judgement. There is no Janaaza Salaat for a still born child. (Ibid)