Sunan an Nasai
1910
Sahih+2

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

SahihAbu Ghuddah
SahihAl-Albani