Abdullah bin Abbas (may Allah be pleased with them) narrates: The Prophet Muhammad (peace be upon him) offered the funeral prayer at the grave of a person who had been buried at night. The Prophet (peace be upon him) and his companions stood up. The Prophet (peace be upon him) inquired about this person, so the people informed him: "So-and-so was buried last night," so they offered the funeral prayer (at his grave).
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 3091
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - انظر ما قبله.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح على شرطهما