In the Name of Allah, Most Gracious, Most Merciful.
All praise and thanks are due to Allah, and peace and blessings be upon His Messenger.
In this fatwa:
Answering your question, Dr. Wael Shehab, PhD in Islamic Studies from Al-Azhar University and currently the Imam of the Downtown Toronto Masjid in Canada, states:
Like an adult, funeral prayer should be offered for a dead Muslim child. He or she should also be washed, shrouded, and buried.
We may say:
“Oh Allah, make him/her (this child) a source for (his or her parents’) salvation; and make him/her a source of reward and treasure for us (them); and make him/her an intercessor for us (them), and one whose intercession is accepted.”
Almighty Allah knows best.
Editor’s note: This fatwa is from Ask the Scholar’s archive and was originally published at an earlier date.