حَدَّثَنَا أَبُو بَكْرِ بْنُ أَبِي شَيْبَةَ، وَهِشَامُ بْنُ عَمَّارٍ، قَالاَ حَدَّثَنَا سُفْيَانُ بْنُ عُيَيْنَةَ، عَنِ الزُّهْرِيِّ، عَنْ سَعِيدِ بْنِ الْمُسَيَّبِ، عَنْ أَبِي هُرَيْرَةَ، قَالَ قَالَ رَسُولُ اللَّهِ ـ صلى الله عليه وسلم ـ ‏"‏ أَسْرِعُوا بِالْجِنَازَةِ فَإِنْ تَكُنْ صَالِحَةً فَخَيْرٌ تُقَدِّمُونَهَا إِلَيْهِ وَإِنْ تَكُنْ غَيْرَ ذَلِكَ فَشَرٌّ تَضَعُونَهُ عَنْ رِقَابِكُمْ ‏"‏ ‏.‏

It wasnarrated from Abu Hurairah that the Messenger of Allah (PBUH)said: ‘Hasten with the funeral (procession), for if the person wasrighteous then you are advancing him towards good, and if he wasotherwise then it is evil which you are taking off of your necks.” Translation Not Available

Book Ref: Sunan Ibn Majah Book 6 Hadith 1477
Web Ref:  Sunan Ibn Majah Vol 1 Book 6 Hadith 1477