A father should pray the funeral prayer for his Muslim children and others, if they die during his lifetime
◈ عن البراء بن عازب قال: أمرنا النبى بسبع ونهانا عن سبع أمرنا باتباع الجنازة وعيادة المريض….. الى آخره.
Bara’ ibn ‘Azib (may Allah be pleased with him) says that the Prophet ﷺ commanded us to do seven things and forbade us from seven things. He ﷺ commanded us to follow the funeral procession and to visit the sick.
◈ عن أبى هريرة أن رسول الله صلى الله عليه وسلم قال: من اتبع جنازة مسلم إيمانا واحتسابا وكان معه حتى يصلي عليها ويفرغ من دفنها فإنه يرجع من الأجر بقيراطين كل قيراط مثل أحد ومن صلى عليها ثم رجع قبل أن تدفن فإنه يرجع بقيراط.
Abu Hurayrah (may Allah be pleased with him) narrates that the Messenger of Allah ﷺ said: Whoever follows the funeral of a Muslim with faith and seeking reward, and stays with it until he prays the funeral prayer and finishes the burial, will receive a reward of two qirats, each qirat being equal to the mountain of Uhud; and whoever prays the funeral prayer but returns before the burial will receive the reward of one qirat.