Why is Muhammad, a man involved in wars and battles and possibly massacres, considered a perfect example for humanity according to Muslims?

Is Muhammad a perfect Muslim and thus a perfect human being? What qualities make him so?

Are these two questions paraphrases of each other?
no