[Machine] The Messenger of Allah ﷺ said when he arrived at Khaybar: "Tomorrow, I will give the flag to a man whom Allah and His Messenger love, and he loves Allah and His Messenger." When the next day came, a group of his companions competed for it. He called upon Ali, who had an eye infection, and put saliva in his eyes, then gave him the flag while the people stood up with him. They encountered the people of Khaybar, and whenever he entered a battle, he would recite, "By the sea complied with its limit; indeed, Khaybar knew that I am Harb, the brave champion, when swords are ready to burn, sometimes I stab, and sometimes I strike." He fought with Ali, and they both struck each other twice. Ali struck him on the head until the sword bit into it with its teeth, and the people of the army heard the sound of his strike, so they killed him. He was not the last of the people who were defeated, as the first of them doors were opened, and he said, "This is a major gate that I have brought out among the gates."
أَنَّ رَسُولَ اللَّهِ ﷺ لَمَّا نَزَلَ بِحَضْرَةِ خَيْبَرَ قَالَ رَسُولُ اللَّهِ ﷺ «لَأُعْطِيَنَّ اللِّوَاءَ غَدًا رَجُلًا يُحِبُّ اللَّهَ وَرَسُولَهُ وَيُحِبُّهُ اللَّهُ وَرَسُولُهُ» فَلَمَّا كَانَ مِنَ الْغَدِ تَطَاوَلَ لَهُ جَمَاعَةٌ مِنْ أَصْحَابِهِ «فَدَعَا عَلِيًّا وَهُوَ أَرْمَدُ فَتَفَلَ فِي عَيْنَيْهِ وَأَعْطَاهُ اللِّوَاءَ وَنَهَضَ مَعَهُ النَّاسُ» فَلَقُوا أَهْلَ خَيْبَرَ فَإِذَا مَرْحَبٌ بَيْنَ أَيْدِيهِمْ يَرْتَجِزُ وَإِذَا هُوَ يَقُولُ [البحر الرجز] قَدْ عَلِمَتْ خَيْبَرُ أَنِّي مَرْحَبٌ شَاكِي السِّلَاحِ بَطَلٌ مُجَرَّبُ إِذَا السُّيُوفُ أَقْبَلَتْ تَلَهَّبُ أَطْعَنُ أَحْيَانًا وَحِينًا أَضْرِبُ فَاخْتَلَفَ هُوَ وَعَلِيٌّ بِضَرْبَتَيْنِ فَضَرَبَهُ عَلِيٌّ عَلَى رَأْسِهِ حَتَّى عَضَّ السَّيْفُ بِأَضْرَاسِهِ وَسَمِعَ أَهْلُ الْعَسْكَرِ صَوْتَ ضَرَبْتِهِ فَقَتَلَهُ فَمَا أَتَى آخِرُ النَّاسِ حَتَّى فُتِحَ لِأَوَّلِهِمْ «هَذَا بَابٌ كَبِيرٌ قَدْ خَرَّجْتُهُ فِي الْأَبْوَابِ»