Sayyiduna Abdullah bin Abbas (may Allah be pleased with them) narrates: The Prophet Muhammad (peace and blessings be upon him) came to an isolated grave, and he (peace be upon him) offered the funeral prayer over it. We performed the funeral prayer behind him, following his lead.
Hadith Referenceصحیح ابن حبان / كتاب الجنائز وما يتعلق بها مقدما أو مؤخرا / 3089
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيصحيح - انظر ما قبله.فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده صحيح