Abu Sa'id Al-Khudri (May Allah be pleased with him) reported:
The Prophet (ﷺ) said, "When a dead body is placed on a bier and men carry it on their shoulders, if he was a pious man, it (corpse) says: 'Take me in haste.' But if he was not righteous, it says 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 fallen into swoon."[Al- Bukhari].
App reference: Book 7, Hadith 48
Arabic/English book reference: Book 7, Hadith 942