There has certainly been for you in the Messenger of Allāh an excellent pattern1 for anyone whose hope is in Allāh and the Last Day and [who] remembers Allāh often.
There has been for you an excellent example in what Allah’s Messenger said, carried out and practiced, for he presented his own noble self and personally engaged in battle, so how after that can you be miserly with your souls over his soul? And only he who is hopeful of the Last Day, works for it and remembers Allah abundantly will follow Allah’s Messenger (peace be upon him). As for the one who is not hopeful of the Last Day and does not remember Allah abundantly, he does not follow His Messenger (peace be upon him).