Sayyiduna Abu Hurayrah (may Allah be pleased with him) narrates from the Prophet (peace and blessings be upon him) that he (peace and blessings be upon him) said: "Do not follow the deceased with a voice or with fire." Harun added to it: nor should one walk in front of it.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6653
Abu Burdah (may Allah have mercy on him) related that when death approached Sayyiduna Abu Musa (may Allah be pleased with him), he left this instruction: When you set out with my funeral, walk quickly; do not follow behind me with fire; do not place anything on my lahd (the niche of the grave) that comes between me and the earth; and do not build any structure over my grave. I call you to witness that I am free of "the woman who strikes herself, the woman who wails, and the woman who tears her clothes." The people said to him: Did you hear anything about this from the Messenger of Allah (peace and blessings be upon him)? He said: "Yes, from the Messenger of Allah (peace and blessings be upon him) himself."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6654