The Prophet Muhammad exemplified peace and tolerance throughout his life. Once, on being asked for a master advice, he replied: ‘Don’t be angry.’ He said that the strongest among us is the one who can control his anger. He propagated the pursuit of the easier choice of peace and tolerance as against being intolerant or violent.
During the course of his lifetime, there were certain defensive skirmishes that took place. Even during these, Prophet Muhammad strictly prohibited the ill-treatment of non-combatants and prisoners of war. For example, the Prophet did not approve of any ill-treatment of prisoners of war that were taken after the Battle of Badr:
He instructed Muslims to share equal food with the prisoners. (Majma ul Zawaid, hadith no. 10007)
He declared that any prisoner who could teach ten children of Madinah to read and write would be set free. (Musnad Ahmad, hadith no. 2216)
It is also worth noting that in future battles, no prisoners of war were taken in by the Muslims.
The Prophet Muhammad taught believers to be virtuous and compassionate towards fellow human beings. He preached selfless service and the development of piety and modesty among individuals. He believed that a Muslim is soft, simple, and lenient. He cautioned Muslims from falling into extremism: “Those who go to extremes are doomed.” (Sahih Muslim, Hadith No. 2670)
Source: The Seeker’s Guide