Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
tabarani:6287Muḥammad b. Yaḥyá al-Qazzāz > al-Qaʿnabī > Ḥātim b. Ismāʿīl > Yazīd b. Abū ʿUbayd > Salamah b. al-Akwaʿ > Rasūl

[Machine] Al-Qa'nabi narrated that Hatim ibn Ismail narrated from Yazid ibn Abi Ubaid from Salamah ibn Al-Akwa' that the Messenger of Allah ﷺ said on the eve of the Battle of Khaybar: "Tomorrow, I will give the flag to a man whom Allah and His Messenger love, and Allah will grant victory to him." Then, Ali ibn Abi Talib appeared, and the Messenger of Allah ﷺ gave him the flag. So, Allah granted him victory.  

الطبراني:٦٢٨٧حَدَّثَنَا مُحَمَّدُ بْنُ يَحْيَى الْقَزَّازُ

ثنا الْقَعْنَبِيُّ ثنا حَاتِمُ بْنُ إِسْمَاعِيلَ عَنْ يَزِيدَ بْنِ أَبِي عُبَيْدٍ عَنْ سَلَمَةَ بْنِ الْأَكْوَعِ أَنَّ رَسُولَ اللهِ ﷺ قَالَ لَيْلَةَ صَبِيحَةِ خَيْبَرَ «لَأُعْطِيَنَّ الرَّايَةَ غَدًا لِرَجُلٍ يُحِبُّهُ اللهُ وَرَسُولُهُ يَفْتَحُ اللهُ عَلَيْهِ» فَإِذَا بِعَلِيِّ بْنِ أَبِي طَالِبٍ ؓ فَأَعْطَاهُ رَسُولُ اللهِ ﷺ الرَّايَةَ فَفَتَحَ اللهُ عَلَيْهِ