Sayyiduna Abu Sa'id Khudri (may Allah be pleased with him) narrates: The Noble Prophet (peace and blessings be upon him) said: "When a person accompanies a funeral, he should not sit until the body has been placed (in the grave)."
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 3104
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - «الصحيحة» (3967): ق.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح