[Machine] The Messenger of Allah ﷺ said, "The person who walks in front of the funeral procession, the one who rides behind it, and the child should all pray for the deceased."
قَالَ رَسُولُ اللَّهِ ﷺ «الْمَاشِي أَمَامَ الْجِنَازَةِ وَالرَّاكِبُ خَلْفَهَا وَالطِّفْلُ يُصَلَّى عَلَيْهِ»