Uqba bin Amir reported,

The Messenger of Allah ﷺ prayed over the slain of Uhud after eight years, as one bidding farewell to the living and the dead. Then he ascended the pulpit and said, "I am your forerunner, and I am a witness over you..." The hadith continues at length.

Azami 8849

Sahih

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

صلى رسول الله ﷺ على قتلى أحد بعد ثماني سنين كالمودع للأحياء والأموات، ثم طلع المنبر فقال: إني بين أيديكم فرط، وأنا عليكم شهيد… الحديث بطوله

الأعظمي 8849صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
Uhud expedition
Section
Prophet's ﷺ supplication for those martyred at the Battle of Uhud
Numbering
Jami al-Kamil 8849 (2nd edition)
Azami 8849