Abu Sa'id Al-Khudri (May Allah be pleased with him) reported:
Messenger of Allah (ﷺ) said, "When a dead body is placed on a bier and men carry it on their shoulders, if the deceased was pious, it (the corpse) will say: 'Take me in haste'; but if he was not, it will say (to its bearers): 'Woe to it. Where are you taking it?' Everything except man hears its voice. Had a human being heard its voice, he would have surely died".[Al- Bukhari].
Arabic/English book reference: Book 1, Hadith 444