Abu Saeed Khudri reported,

The Messenger of Allah ﷺ said, "When the bier is set down and Some men carry it on their shoulders, if the deceased was Salih it says, 'Take me forward, take me forward.' But if it was not righteous, it says, 'Woe to it! Where are they taking it?' Every creature hears its voice except for humans, and if a human were to hear it, he would fall down dead."

Bukhari 1380

Sahih

حدثنا قتيبة حدثنا الليث عن سعيد بن أبي سعيد عن أبيه أنه سمع

أبا سعيد الخدري رضي الله عنه يقول

قال رسول الله ﷺ إذا وضعت الجنازة فاحتملها الرجال على أعناقهم فإن كانت صالحة قالت قدموني قدموني وإن كانت غير صالحة قالت يا ويلها أين يذهبون بها يسمع صوتها كل شيء إلا الإنسان ولو سمعها الإنسان لصعق

البخاري 1380صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Funerals
Chapter
Speech of the deceased on the bier
Numbering
Darussalam 1380
Bukhari 1380