It was narrated from Abu Hurairah, who attributed it to the Prophet:"Hasten with the Janazah, for if it was righteous then your are taking it toward something good, and if it was otherwise, then it is an evil of which you are relieving yourselves
Hadith No. 1910
Sunan an Nasai
Gradings:
Abu Ghuddah:
Sahih
Al-Albani:
Sahih
Zubair Ali Zai:
Sahih - Agreed Upon