Anas bin Malik reported,

The Prophet ﷺ announced the deaths of Zayd, Jafar, and Ibn Rawahah to the people before any news of them had reached them. He said, "Zayd took the banner and was struck down, then Jafar took it and was struck down, then Ibn Rawahah took it and was struck down," with tears flowing from his eyes, "until the banner was taken up by one of the swords of Allah, and Allah granted them victory."

Azami 9721

Sahih

عن أنس

أن النبي ﷺ نعى زيدا وجعفرا وابن رواحة للناس، قبل أن يأتيهم خبرهم فقال: أخذ الراية زيد فأصيب، ثم أخذ جعفر فأصيب، ثم أخذ ابن رواحة فأصيب وعيناه تذرفان حتى أخذ الراية سيف من سيوف الله حتى فتح الله عليهم.

الأعظمي 9721صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Biography of the Prophet ﷺ
Chapter
What came true of his prophecies
Section
Mourning Jafar and Zayd before news of them arrived
Numbering
Jami al-Kamil 9721 (2nd edition)
Azami 9721