Sayyiduna Jabir (may Allah be pleased with him) narrates: The Noble Prophet (peace and blessings be upon him) said: "When the deceased is placed in the grave, it feels as if the sun is about to set, so he says: Let me perform the prayer."
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 3116
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «ظلال الجنة» (867).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده حسن