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," while his eyes were overflowing with tears, "until one of the swords of Allah took it up, and Allah granted them victory."

Bukhari 3757

Sahih

حدثنا أحمد بن واقد حدثنا حماد بن زيد عن أيوب عن حميد بن هلال

عن أنس رضي الله عنه

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

البخاري 3757صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Virtues of the companions of the Prophet ﷺ
Chapter
Virtues of Khalid bin Walid, may Allah be pleased with him
Numbering
Darussalam 3757
Bukhari 3757