(52) باب قَوْلِ الْمَيِّتِ وَهُوَ عَلَى الْجِنَازَةِ قَدِّمُونِي
Narrated Abu Sa`id Al-Khudri:
The Prophet (ﷺ) said, "When a funeral is ready and the men carry the deceased on their necks (shoulders), if it was pious then it will say, 'Present me quickly', and if it was not pious, then it will say, 'Woe to it (me), where are they taking it (me)?' And its voice is heard by everything except mankind and if he heard it he would fall unconscious."
Reference: Sahih al-Bukhari 1316
In-book reference: Book 23, Hadith 74
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 2, Book 23, Hadith 402