Today, “Islam” and “Extremism” have become synonymous. However, the truth of the matter is that Islam was to eliminate extremism. Islam is the “middle way” as taught by its Prophet Muhammad ﷺ (Peace be upon him) and its divine text. The true devotees or servants of Allah spread goodness and prevent evil so that Allah’s earth is purified from turmoil.
Islam’s response to hardship is not one of retaliation, but of patience. Two wrongs don’t make a right. The Islamic Spiritual tradition teaches that hardships come for two reasons: to clean us of our sins, and / or to raise us in spiritual ranks - for the belivers, both of these are good states to be in.
The concept of Sulh-i-kul was adapted by Emperor Akbar in written history inspired from the philosophy of the Sufis. Khwaja Moinuddin the prominent saint of Chishty order believed that every creature in this universe has a divine soul, and we are all one family. If we were supposed to be divided then Allah would not have sent us as humans in one family of Adam (A.S.). Khwaja Sahib established this concept of peace and universal brotherhood in the society in spite of religion, caste, creed, tribe etc. Khwaja Sahib advised to listen to the opressed and the depressed, console them, pray for them and give them gifts. As He said that Allah Almighty ordains that “to share in someone’s sorrow and grief's is nothing but another form of respectful worship of God. (Ibadah)”
This concept of "Peace to All" actually originated in Medina in 622 CE when the locals (Ansar or helpers) of Madina welcomed the emigrant Muslims (Muhajirun) of Mecca and Porphet’s ﷺ followers. A brotherhood was created, the kind never seen before in the annals of history.
The Prophet started establishing bonds of brotherhood with the purpose of making his companions & brothers unto one another in the most complete sense possible. This process of forming bonds of brotherhood helped erase all forms of prejudice and tribal zealotry; the only link that now united people was the link of Islam. Lineage, color, and cultural background were concepts that no longer mattered; only one's character and level of piety could raise one in status and ranking.
Those who invited the Prophet ﷺ to Medina saw in him qualities of justice, intelligence, trustworthiness, forbearance, patience, tolerance, beauty, eloquence and host of other attributes and as someone who can bring peace between them. Prophet was described as a “philosopher, orator, apostle, legislator, warrior, conqueror of ideas, restorer of rational dogmas, of a cult without images, the founder of twenty terrestrial empires and one of spiritual empire, that is Muhammad.” (Lamartine, vol.11, pg 267-77)
Islam’s main principle is to establish peace and universal brotherhood among people so that they live in harmony and respect each other as humans.