Sayyiduna Abu Sa'id al-Khudri (may Allah be pleased with him) said: The Messenger of Allah (peace and blessings be upon him) said: "When the funeral (bier) is set down and men carry it on their necks, if it is righteous it says: 'Take me forward, take me forward.' If it is not righteous, the deceased says: 'Woe is me! Where are you taking me?' Everything hears its voice except man; and if man heard it, he would perish."
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الجنائز / 6846