Riyad as-Salihin 94: On Vying with One Another in Doing Good
Abu Hurairah relates that on the day of the battle of Khaibar the Holy Prophet said: I shall offer this standard to one who loves Allah and His Messenger, may Allah bestow victory through him. Umar relates: I had never desired a command but that day I hoped that I might be called. However, the Holy Prophet called Ali and handed the standard to him and said: Go forth and pay no heed to anything else till Allah bestows victory upon you. Ali proceeded a little way and stopped and without turning inquired in a loud voice: Messenger of Allah (saw), for what shall I fight them? He answered: Fight on till they affirm that there is none worthy of worship save Allah and that Muhammad is Messenger of Allah (saw). If they do that their lives and their properties will be secure against you, subject to their obligations under Islam, and they will be accountable to Allah (Muslim).