First Islamic State

[4] A delegation from Yathrib, consisting of the representatives of the twelve important clans of Medina, invited Muhammad as a neutral outsider to serve as the chief arbitrator for the community.

He instructed his cousin and future son-in-law Ali to sleep in his bed to trick the assassins that he had stayed (and to fight them off in his stead) and secretly slipped away from the town.

[5][8] The community defined in the Constitution of Medina, umma, had a religious outlook but was also shaped by the practical considerations and substantially preserved the legal forms of the old Arab tribes.

In the course of Muhammad proselytizing in Mecca, he viewed Christians and Jews (both of whom he referred to as "People of the Book") as natural allies, part of the Abrahamic religions, sharing the core principles of his teachings, and anticipated their acceptance and support.

In the Constitution of Medina, Muhammad demanded the Jews' political loyalty in return for religious and cultural autonomy in many treaties.

This attitude was already evolving in the third Meccan period as the Prophet became more aware of the antipathy between Jews and Christians and the disagreements and strife amongst members of the same religion.

In particular Asma bint Marwan and Abu 'Afak had composed verses insulting some of the Muslims and thereby violated the Constitution of Medina to which they belonged.

No one dared to take vengeance on them, and some of the members of the clan of Asma bint Marwan who had previously converted to Islam in secret, now professed openly.

The Qur'an also stated that it was "restoring the pure monotheism of Abraham which had been corrupted in various, clearly specified, ways by Jews and Christians".

[30] According to Francis Edward Peters, "The Jews also began secretly to connive with Muhammad's enemies in Mecca to overthrow him.

"[32] Following the battle of Badr, Muhammad also made mutual-aid alliances with a number of Bedouin tribes to protect his community from attacks from the northern part of Hejaz.

[35] Abu Sufyan ibn Harb subsequently gathered an army of three thousand men and set out for an attack on Medina.

[36] They were accompanied by some prominent women of Mecca, such as Hind bint Utbah, Abu Sufyan's wife, who had lost family members at Badr.

Muhammad and many of the senior figures suggested that it would be safer to fight within Medina and take advantage of its heavily fortified strongholds.

[44] In the battle of Uhud, the Meccans had collected all the available men from the Quraysh and the neighboring tribes friendly to them but had not succeeded in destroying the Muslim community.

In order to raise a more powerful army, Abu Sufyan attracted the support of the great nomadic tribes to the north and east of Medina, using propaganda about Muhammad's weakness, promises of treasure, memories of the prestige of Quraysh and straight bribes.

[46] One example is the assassination of Ka'b ibn al-Ashraf, a member of the Jewish tribe of Banu Nadir who had gone to Mecca and written poems that had helped rouse the Meccans' grief, anger and desire for revenge after the battle of Badr (see the main article for other reasons for killing of Ka'b given in the historiographical sources).

[49] Abu Sufyan, the military leader of the Quraysh, with the help of Banu Nadir, had mustered a force numbering 10,000 men.

He had however adopted a new form of defense, unknown in Arabia at that time: Muslims had dug trenches wherever Medina lay open to cavalry attack.

[52][53] During the Battle of the Trench, the Jewish tribe of Banu Qurayza who were located at the south of Medina were charged with treachery.

After the retreat of the coalition, Muslims besieged Banu Qurayza, the remaining major Jewish tribe in Medina.

[9] While returning from one of these two expeditions (or some years earlier according to other early accounts), an accusation of adultery was made against Aisha, Muhammad's wife.

In the month of Shawwal 628, Muhammad ordered his followers to obtain sacrificial animals and to make preparations for a pilgrimage (umrah) to Mecca, saying that God had promised him the fulfillment of this goal in a vision where he was shaving his head after the completion of the Hajj.

[63] Andrae disagrees, writing that the Muslim state of ihram (which restricted their freedom of action) and the paucity of arms carried indicated that the pilgrimage was always intended to be pacific.

News of Uthman's safety, however, allowed for negotiations to continue, and the treaty of Hudaybiyyah, scheduled to last ten years was eventually signed between the Muslims and the Quraysh.

The explanation given by western scholars of Islam for this attack ranges from the presence of the Banu Nadir in Khaybar, who were inciting hostilities along with neighboring Arab tribes against Muhammad, to deflecting from what appeared to some Muslims as the inconclusive result of the truce of Hudaybiyya, increasing Muhammad's prestige among his followers and capturing booty.

[36][71] According to Muslim tradition, Muhammad also sent letters to many rulers of the world, asking them to convert to Islam (the exact date are given variously in the sources).

They were joined by the Thaqif inhabiting in the city of Ta’if who had adopted an anti-Meccan policy due to the decline of the prestige of Meccans.

[9][80] Following this expedition, the Banu Thaqif and other Bedouins submitted to Muhammad in order to be safe from attack and to benefit from the bounty of the wars.

[9] Following the Conquest of Mecca and these events, Muhammad would perform the Farewell Pilgrimage and return to Medina, where he would fall ill for several days with a headache and weakness.

A map of the Badr campaign
Battle of Khandaq ( Battle of the Trench )
Muhammad and the sahaba advancing on Mecca. The angels Gabriel , Michael , Israfil and Azrael , are also in the painting.