Ali bin Abu Talib had stayed behind from the Prophet ﷺ during the expedition to Khaybar because he was suffering from an eye ailment. Then he said, "Am I to stay behind from the Prophet ﷺ?" So he set out and joined him.On the night before Khaybar was conquered, the Prophet ﷺ said, "Tomorrow I will give the banner," or, "Tomorrow the banner will be taken by a man whom Allah and His Messenger love, and Allah will grant victory through him."We were all hoping for it. Then it was said, "Here is Ali." So he gave it to him, and Allah granted victory through him.
حدثنا عبد الله بن مسلمة حدثنا حاتم عن يزيد بن أبي عبيد
كان علي بن أبي طالب رضي الله عنه تخلف عن النبي ﷺ في خيبر وكان رمدا فقال أنا أتخلف عن النبي ﷺ فلحق به فلما بتنا الليلة التي فتحت قال لأعطين الراية غدا أو ليأخذن الراية غدا رجل يحبه الله ورسوله يفتح عليه فنحن نرجوها فقيل هذا علي فأعطاه ففتح عليه