Salama bin Akwa reported,

Ali ﷺ had stayed behind from the Prophet ﷺ at Khaybar because he was suffering from an eye ailment. Then he said, "Am I to stay behind from the Messenger of Allah ﷺ?" So he set out and caught up with the Prophet ﷺ.On the evening of the night before the morning of its conquest, the Messenger of Allah ﷺ said, "Tomorrow I shall give the banner to a man," or he said, "the banner shall be taken tomorrow by a man whom Allah and His Messenger love," or he said, "who loves Allah and His Messenger. Allah will grant victory through him."Suddenly there was Ali, though we had not expected him. They said, "Here is Ali." So the Messenger of Allah ﷺ gave it to him, and Allah granted victory through him.

Azami 7924

Sahih

عن سلمة بن الأكوع قال

كان على ﷺ تخلف عن النبي ﷺ في خيبر، وكان به رمد، فقال: أنا أتخلف عن رسول الله ﷺ! فخرج على فلحق بالنبي ﷺ، فلما كان مساء الليلة التي فتحها في صباحها، فقال رسول الله ﷺ: لأعطين الراية- أو قال: ليأخذن. غدا رجل يحبه الله ورسوله. أو قال: يحب الله ورسوله. يفتح الله عليه، فإذا نحن بعلي وما نرجوه، فقالوا: هذا علي، فأعطاه رسول الله ﷺ، ففتح الله عليه.

الأعظمي 7924صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Jihad
Chapter
Rulings on jihad and its etiquette
Section
Adopting a banner in jihad
Numbering
Jami al-Kamil 7924 (2nd edition)
Azami 7924