Source: islamonline.net
By: the late prominent Muslim scholar, Sheikh Ahmad Ash-Sharbasi, professor of `Aqeedah and Philosophy at Al-Azhar University
If I phrase the answer in one sentence, I would say: Muhammad (peace and blessings be upon him) gathered his nation and united its decisions because he is the Seal of the Prophets and the leader of the Messengers sent by Allah. He is the leader of all who fight for the sake of Allah and he was sent as a mercy to all humanity and supported by the care of Allah the All-Mighty.
And to explain I will say briefly that the noble Prophet (peace and blessings be upon him) was able to fulfill such unity and solidarity thanks to many causes and means, such as the strength of his character, his sincere devotion to his message, as well as his detestation of the false idols that prevailed at that time; and, moreover, he implanted the hearts with a creed that was superior to the false and trivial pagan beliefs.
He lightened the hearts with the light of believing in the Glorious Creator Who owns all that is in the heavens and on the earth. He firmly fixed this faith, practically and continuously, by the acts of worship his Lord revealed to him, such as prayers, fasting, Zakah, Hajj, and other kinds of good deeds.
In addition to this, he purified the souls of his people of grudges and hatred; there was no room for aggression or injustice, no room for pride or insults, but rather brotherhood, love and equality because they were of one origin, and there was no privilege of an Arab over a non-Arab except through piousness.

