Muhammad as Political Leader

After years of being harassed, Muhammad and his followers went to a town called Yathrib. According to Islam, two tribes from Yathrib, the Auws and Khazraj, approached Muhammad and invited him to govern their town, which was prone to civil war. Muhammad needed a place where his followers could live in peace, without fear of persecution, so he agreed. The city was soon called Medina. Muhammad wrote a charter for its citizens and established a peace.

What does this tell us about Muhammad?