[Machine] The Messenger of Allah ﷺ said on the day of Khaybar: "I will give the flag (of leadership) to a man who loves Allah and His Messenger, and Allah will grant him victory." Umar then said, "I have never desired leadership before that day, but I eagerly sought it with the hope that it would be given to me. When the next day came, he called Ali and handed him the flag, saying, 'Fight and do not turn back until Allah grants you victory.' Ali went forward and soon called out, 'O Messenger of Allah, why am I fighting?' The Prophet replied, 'Fight until they bear witness that there is no god but Allah and that Muhammad is the Messenger of Allah. Once they do that, they will be protected from me in regard to their lives and wealth, except for their due rights, and their reckoning will be with Allah.'
قَالَ رَسُولُ اللهِ ﷺ يَوْمَ خَيْبَرَ لَأَدْفَعَنَّ الرَّايَةَ إِلَى رَجُلٍ يُحِبُّ اللهَ وَرَسُولَهُ يَفْتَحُ اللهُ عَلَيْهِ قَالَ فَقَالَ عُمَرُ فَمَا أَحْبَبْتُ الْإِمَارَةَ قَبْلَ يَوْمَئِذٍ فَتَطَاوَلْتُ لَهَا وَاسْتَشْرَفْتُ رَجَاءَ أَنْ يَدْفَعَهَا إِلَيَّ فَلَمَّا كَانَ الْغَدُ دَعَا عَلِيًّا فَدَفَعَهَا إِلَيْهِ فَقَالَ قَاتِلْ وَلَا تَلْتَفِتْ حَتَّى يُفْتَحَ عَلَيْكَ فَسَارَ قَرِيبًا ثُمَّ نَادَى يَا رَسُولَ اللهِ عَلَامَ أُقَاتِلُ؟ قَالَ حَتَّى يَشْهَدُوا أَنْ لَا إِلَهَ إِلَّا اللهُ وَأَنَّ مُحَمَّدًا رَسُولُ اللهِ فَإِذَا فَعَلُوا ذَلِكَ فَقَدْ مَنَعُوا مِنِّي دِمَاءَهُمْ وَأَمْوَالَهُمْ إِلَّا بِحَقِّهَا وَحِسَابُهُمْ عَلَى اللهِ ﷻ