the prophet (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 this, it can be said that 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 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.
besides, he taught them that they have no actual power or might; that when they are self-conceited they will lose, but when they are proud of their creator they will succeed and prosper; and that glory is to allah, his messenger and to the believers. this is why the qur’an states in surat aal `imran: “and hold fast, all of you together, to the cable of allah, and do not separate…” (aal `imran: 103)
from such ways, also, the value of life and its pleasures was minimized in their eyes. as long as one looks down upon life, his humanity increases, and he deserves to gather all human beings under the roof of love and faithfulness. he also made them look forward to a marvelous heaven and to live for an eternal life to come after this temporary life. and since for such causes competitors must work together and diverse people must cooperate, how will be the case with those with a common identity?
moreover, he dyed the patriotic motive with a religious one and stated that to love your homeland is to believe, and to defend your property is part of good religion.
such a strong heavenly bond joined all parties with a bond of solidarity and agreement, for they could not have authority over their lands and defend their sovereignty to please their lord unless each and every one of them was a help and support to his brother, for one muslim to another muslim is like a solid wall (of bricks) supporting each other.
finally, the prophet (peace and blessings be upon him) succeeded in uniting his ummah and people because he turned them into a pious and faithful nation that works for its lifetime as if it will live forever and works for the hereafter as if death will end it tomorrow. therefore, this religion will only prosper by what caused its prosperity at the very beginning; as for those who are lagging behind, if they want to come forward, they have the way right in front of them.