Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates: Whenever the Prophet (peace and blessings be upon him) would go with a funeral, he would not sit down until it was placed in the grave (the narrator is in doubt, perhaps the words are) until it was buried.
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 3106
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح دون قوله: «في اللحد ... ».فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح