Jami` at-Tirmidhi, Book 10, Hadith 51 (Tirmidhi 1017)

Abu Hurairah narrated that:

The Prophet said: "Hurry up with the funeral (procession) for if it was good, you are advancing it to good, and if it was evil, then you are taking it off your necks."