«الراكب خلف الجنازة والماشي حيث شاء منها والطفل يصلى عليه»
The Prophet (peace and blessings be upon him) said:
"The rider should stay behind the funeral procession, the one walking may walk wherever he wishes around it, and the funeral prayer is to be offered for a child."