In the fifth year of the Hegira, Mahomet, informed by his spies of a design against Medina, surrounded it with a ditch, which was no sooner finished than the Meccans, with several tribes of Arabs, sat down before it, to the number of ten thousand men. The appearance of so great a force threw the Mussulmans into a consternation. Some were ready to revolt; and one of them exclaimed aloud, "Yesterday the prophet promised us the wealth of Khusrau (Cosroes) and Cæsar, and now he is forced to hide himself behind a nasty ditch." In the mean time Mahomet, skilfully concealing his real concern, and setting as good a face upon the matter as he could, marched out with three thousand Mussulmans, and formed his army at a little distance behind the intrenchment. The two armies continued facing each other for twenty days, without any action, except a discharge of arrows on both sides. At length some champions of the Koreishites, Amru son of Abdud, Acrema son of Abu Jehel, and Nawfal son of Abdallah, coming to the ditch leaped over it; and, wheeling about between the ditch and the Moslem army, challenged them to fight. Ali readily accepted the challenge, and came forward against his uncle Amru, who said to him, "Nephew, what a pleasure am I now going to have in killing you." Ali replied, "No; it is I that am to have a much greater pleasure in killing you." Amru immediately alighted, and, having hamstrung his horse, advanced toward Ali, who had also dismounted and was ready to receive him. They immediately engaged, and, in turning about to flank each other, raised such a dust that they could not be distinguished, only the strokes of their swords might be heard. At last, the dust being laid, Ali was seen with his knee upon the breast of his adversary, cutting his throat. Upon this, the other two champions went back as fast as they came. Nawfal, however, in leaping the ditch, got a fall, and being overwhelmed with a shower of stones, cried out, "I had rather die by the sword than thus." Ali hearing him, leaped into the ditch and despatched him. He then pursued after Acrema, and having wounded him with a spear, drove him and his companions back to the army. Here they related what had happened; which put the rest in such fear that they were ready to retreat; and when some of their tents had been overthrown by a storm, and discord had arisen among the allies, the Koreishites, finding themselves forsaken by their auxiliaries, returned to Mecca. Mahomet made a miracle of this retreat; and published upon it this verse of the Koran, "God sent a storm and legions of angels, which you did not see."

Upon the prophet's return into the town, while he was laying by his armor and washing himself, Gabriel came and asked him, "Have you laid by your arms? we have not laid by ours; go and attack them," pointing to the Koraidites, a Jewish tribe confederated against him. Whereupon Mahomet went immediately, and besieged them so closely in their castles that after twenty-five days they surrendered at discretion. He referred the settlement of the conditions to Saad, son of Moad; who being wounded by an arrow at the ditch, had wished he might only live to be revenged. Accordingly, he decreed that all the men, in number between six and seven hundred, should be put to the sword, the women and children sold for slaves, and their goods given to the soldiers for a prey. Mahomet extolled the justice of this sentence, as a divine direction sent down from the seventh heaven, and had it punctually executed. Saad, dying of his wound presently after, Mahomet performed his funeral obsequies, and made a harangue in praise of him.

One Salam, a Jew, having been very strenuous in stirring up the people against the prophet, some zealous Casregites desired leave to go and assassinate him. Permission being readily granted, away they went to the Jew's house, and being let in by his wife, upon their pretending they were come to buy provisions, they murdered him in his bed, and made their escape.

Toward the end of this year Mahomet, going into the house of Zaid, did not find him at home, but happened to espy his wife Zainab so much in dishabille as to discover beauties enough to touch a heart so amorous as his was. He could not conceal the impression made upon him, but cried out, "Praised be God, who turneth men's hearts as he pleases!" Zainab heard him, and told it to her husband when he came home. Zaid, who had been greatly obliged to Mahomet, was very desirous to gratify him, and offered to divorce his wife. Mahomet pretended to dissuade him from it, but Zaid easily perceiving how little he was in earnest, actually divorced her. Mahomet thereupon took her to wife, and celebrated the nuptials with extraordinary magnificence, keeping open house upon the occasion. Notwithstanding, this step gave great offence to many who could not bring themselves to brook that a prophet should marry his son's wife; for he had before adopted Zaid for his son. To salve the affair, therefore, he had recourse to his usual expedient: Gabriel brought him a revelation from heaven, in which God commands him to take the wife of his adopted son, on purpose that forever after believers might have no scruple in marrying the divorced wives or widows of their adopted sons; which the Arabs had before looked upon as unlawful. The apostle is even reproved for fearing men in this affair, whereas he ought to fear God. (Koran, chapter xxxiii.)

In the sixth year he subdued several tribes of the Arabs. Among the captives was a woman of great beauty, named Juweira, whom Mahomet took to wife and, by way of dowry, released all her kindred that were taken prisoners.

When Mahomet went upon any expedition, it was generally determined by lots which of his wives should go with him; at this time it fell to Ayesha's lot to accompany him. Upon their return to Medina, Ayesha was accused of intriguing with one of the officers of the army, and was in great disgrace for about a month. The prophet was exceedingly chagrined to have his best-beloved wife accused of adultery; but his fondness for her prevailed over his resentment, and she was restored to his favor, upon her own protestation of her innocence. This, however, did not quite satisfy the world, nor, indeed, was the prophet's mind perfectly at ease on the subject, until Gabriel brought him a revelation, wherein Ayesha is declared innocent of the crime laid to her charge; while those who accuse believers of any crime, without proof, are severely reproved, and a command given, that whosoever accuses chaste women, and cannot produce four eye-witnesses in support of the charge, shall receive eighty stripes. (Koran, chapter xxiv.) In obedience to this command, all those who had raised this report upon Ayesha were publicly scourged, except Abdallah, son of Abu Solul, who was too considerable a man to be so dealt with, notwithstanding he had been particularly industrious in spreading the scandal.[58]

Mahomet, being now increased in power, marched his army against Mecca, and a battle being fought on the march, wherein neither side gaining the advantage, a truce was agreed upon for ten years, on the following conditions: All within Mecca, who were disposed, were to be at liberty to join Mahomet; and those who had a mind to leave him and return to Mecca, were to be equally free to do so; but, for the future, if any Meccans deserted to him, they should be sent back upon demand; and that Mahomet or any of the Mussulmans might come to Mecca, provided they came unarmed, and tarried not above three days at a time.

Mahomet was now so well confirmed in his power that he took upon himself the authority of a king, and was, by the chief men of his army, inaugurated under a tree near Medina; and having, by the truce obtained for his followers, free access to Mecca, he ordained they should henceforward make their pilgrimages thither.[59] Among the Arabs it had been an ancient usage to visit the Kaaba once a year, to worship there the heathen deities. Mahomet, therefore, thought it expedient to comply with a custom with which they were pleased, and which, besides, was so beneficial to his native place, by bringing a great concourse of pilgrims to it, that when he afterward came to be master of Mecca, he enforced the pilgrimage with most of the old ceremonies belonging to it, only taking away the idols and abolishing this worship. Though he now took upon himself the sovereign command and the insignia of royalty, he still retained the sacred character of chief pontiff of his religion, and transmitted both these powers to his caliphs or successors, who, for some time, not only ordered all matters of religion, but used, especially upon public occasions, to officiate in praying and preaching in their mosques. In process of time this came to be all the authority the caliphs had left, for, about the year of the Hegira 325, the governors of provinces seized the regal authority and made themselves kings of their several governments. They continued, indeed, to pay a show of deference to the caliph, who usually resided at Bagdad, whom, however, they occasionally deposed. At this present time most Mahometan princes have a person in their respective dominions who bears this sacred character, and is called the mufti in Turkey, and in Persia the sadre. He is often appealed to as the interpreter of the law; but, as a tool of state, usually gives such judgment as he knows will be most acceptable to his prince.

Mahomet used at first, when preaching in his mosque at Medina, to lean upon a post of a palm-tree driven into the ground; but being now invested with greater dignity, by the advice of one of his wives he had a pulpit built, which had two steps up to it and a seat within. When Othman was caliph he hung it with tapestry, and Moawiyah raised it six steps higher, that he might be heard when he sat down, as he was forced to do, being very fat and heavy; whereas his predecessors all used to stand.

Mahomet had now a dream that he held in his hand the key of the Kaaba, and that he and his men made the circuits round it and performed all the ceremonies of the pilgrimage. Having told his dream next morning, he and his followers were all in high spirits upon it, taking it for an omen that they should shortly be masters of Mecca. Accordingly, great preparations were made for an expedition to this city. The prophet gave it out that his only intent was to make the pilgrimage. He provided seventy camels for the sacrifice, which were conducted by seven hundred men, ten to each camel; as, however, he apprehended opposition from the Koreishites, he took with him his best troops, to the number of fourteen hundred men, besides an incredible number of wandering Arabs from all parts. The Koreishites, alarmed at the march of the Mussulmans, got together a considerable force and encamped about six miles from Mecca. Mahomet continued his march, but finding, by his spies, the enemy had posted their men so as to stop the passes in his feints and counter-marches, came to a place where his camel fell upon her knees. The people said she was restive, but the prophet took it for a divine intimation that he should not proceed any farther in his intended expedition, but wait with resignation till the appointed time. He therefore turned back, and encamped without the sacred territory, at Hodaibia. The Koreishites sent three several messengers, the two last men of consequence, to demand what was his intention in coming thither. He answered that it was purely out of a devout wish to visit the sacred house, and not with any hostile design. Mahomet also sent one of his own men to give them the same assurance; but the Koreishites cut the legs of his camel, and would also have killed the man had not the Ahabishites interposed and helped him to escape. Upon this he wished Omar to go upon the same errand; but he excused himself, as not being upon good terms with the Koreishites. At last Othman was sent; who delivered his message, and was coming away, when they told him he might, if he wished, make his circuits round the Kaaba. But upon his replying he would not do so until the apostle of God had first performed his vow to make the holy circuits, they were so greatly provoked that they laid him in irons. In the Mussulman army it was reported that he was killed, at which Mahomet was much afflicted and said aloud, "We will not stir from hence till we have given battle to the enemy." Thereupon the whole army took an oath of obedience and fealty to the prophet, who, on his part, by the ceremony of clapping his hands one against the other, took an oath to stand by them as long as there was one of them left.