What is the Islamic ruling for burial for on babies who have gone the whole nine months but died before coming into the world?
Praise be to Allah, the Lord of the World; and may His blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions.
There is no disagreement among Muslim scholars that a miscarried fetus should be buried even if he was less than nine months old. But, they differ concerning washing him and performing the funeral prayer on him.
The predominant opinion is that we have to wash him and to perform the funeral prayer as long as his age is four months or more. This is the opinion of Ahmad and one of al-Shafi'e 's opinions in this concern.
Allah knows best.
You can search for fatwa through many choices