Uqba bin Amir reported,

The Messenger of Allah ﷺ prayed over those slain at Uhud eight years later, as though bidding farewell to the living and the dead. Then he ascended the pulpit and said, "I will precede you, and I will be a witness over you. Your appointed meeting place is the Pond, and I can see it now from where I stand. I do not fear that you will associate partners with Allah, but I fear that you will compete with one another for worldly gain."The narrator said, "That was the last glance I ever cast upon the Messenger of Allah ﷺ."

Azami 3759

Sahih

عن عقبة بن عامر قال

صلى رسول الله ﷺ على قتلى أحد بعد ثماني سنين كالمودع للأحياء والأموات، ثم طلع على المنبر فقال: إني بين أيديكم فرط، وأنا عليكم شهيد، وإن موعدكم الحوض، وإني لأنظر إليه من مقامي هذا، وإني لست أخشى عليكم أن تشركوا، ولكني أخشى عليكم الدنيا أن تنافسوا قال: فكانت آخر نطرة نظرتها إلى رسول الله ﷺ.

الأعظمي 3759صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Washing the martyrs, praying over them, and burying them
Section
Those who said the funeral prayer should be performed for the martyr in the cause of Allah
Numbering
Jami al-Kamil 3759 (2nd edition)
Azami 3759