Narrated Abu Sa’id Al-Khudri:
Allah’s Apostle said, When the funeral is ready and the men carry it on their shoulders, if the deceased was righteous it will say, ‘Present me (hurriedly),’ and if he was not righteous, it will say, ‘Woe to it (me)! Where are they taking it (me)?’ Its voice is heard by everything except man and if he heard it he would fall unconscious.”
Sahih Bukhari, Volume 2, Book 23, Number 400