quraysh had tried to destroy islam but had failed. the number of muslims grew and their armies increased from three hundred at the battle of badr, seven hundred at the battle of "uhud, to three thousand at the battle of the trench. after the annual fast of ramadan, the prophet (pbuh) had a dream, which indicated that the muslims should go to mecca for the pilgrimage. one thousand and four hundred muslims got ready to go with him on the lesser pilgrimage called 'the `umra'. they were dressed in white and went unarmed to show quraysh that they had come to make the pilgrimage and not to fight. when quraysh heard that the prophet (pbuh) was on his way, they sent troops with khalid ibn al-walid to stop the muslims from entering the city. to avoid meeting this small army the prophet (pbuh) changed his route and led the men through rugged mountain passes. when they reached easier ground he told them, 'say, we ask allah's forgiveness and we repent towards him 'at hudaybiyah, south of mecca, the prophet's camel knelt down and refused to go any further. the muslims thought she was either stubborn or tired, but the prophet (pbuh) said: 'the same power that once stopped the elephant from entering mecca is now stopping us!' he then ordered them to make camp, which they did, although they all hoped they would travel on to the sacred ka'bah the following day.
on setting up camp, the believers were dismayed to find that the springs were almost dry. when he heard this the messenger of allah (pbuh) instructed a man called najiyah to take the bowl of water in which he had performed his ablutions, pour it into the hollows where the small amount of spring water lay, and stir it with his arrows. najiyah did as he was told and the fresh water gushed up so suddenly that he was hardly able to get out of the way in time.
messengers were sent to quraysh to tell them that the muslims had come only for the pilgrimage, to worship allah at the holy ka'bah, and that they wanted to enter the city peacefully. but quraysh took no notice. finally, the prophet's son-in-law, 'uthman ibn affan, a wise and respected man, was chosen to go, and the muslims settled down to wait and see what news he would bring back. after they had waited a long time, the muslims became very worried. at last they decided that he must have been killed. a state similar to that of revelation then came upon the prophet (pbuh). he gathered the muslims around him under an acacia tree and asked them to swear their allegiance to him, which they did. this pact, which is mentioned in the koran, became known as the treaty of radwan (which means paradise). shortly after, `uthman ibn affan returned and the muslims were relieved to see that no harm had come to him. some meccan warriors tried to attack the muslim camp but were captured and brought before the prophet (pbuh), who forgave them when they promise to stop attacking the muslims. soon after this, official messengers came from quraysh and talks began for a peaceful settlement.
a man called suhayl ibn 'amr was sent by the meccans to work out a treaty. when the prophet (pbuh) asked 'ali to write 'in the name of allah, the most gracious, the most merciful', on the top of the page, suhayl objected, saying 'write only: bismik allahumma (in thy name, 0 allah). i don't know him as al-rahman (the most gracious), al-rahim (the most merciful).' the prophet (pbuh) agreed and dictated: 'this is a treaty between muhammad the messenger of allah and suhayl ibn 'amr.''stop!' cried suhayl, 'i don't believe that you are rasulallah (the messenger of allah). if i thought you were allah's messenger, i wouldn't be fighting against you, would i?' calmly, the prophet (pbuh) agreed that he should be referred to in the treaty as muhammad', son of 'abd allah. the muslims were very upset at this, and 'umar furiously cried out, 'are you not allah's messenger, and are we not muslims? how can we accept such treatment when we are right and they are wrong? this will make people laugh at our religion!
but the prophet (pbuh) knew what was best and the treaty of hudaybiyah was signed.
in this treaty the two sides agreed to stop fighting for a period of ten years. it was also agreed that the muslims should go back to medinah immediately but that they could return the following year for the pilgrimage. this pilgrimage would last three days. in addition, the treaty allowed muslims wishing to leave islam and return to mecca to do so.
it also permitted meccans to leave and become muslims provided they had the permission of their guardians. the muslims agreed to send any meccan who did not have their guardian's permission back to mecca.
suhayl's son had come with his father with the idea of joining the prophet (pbuh) but when the treaty was signed he was, of course, forced to return to mecca. he cried bitterly. the prophet (pbuh) said, Ɔ abu jandal, be patient and control yourself. allah will provide relief and find a way out for you and others like you.
the majority of the muslims were very disappointed when they heard the terms of the agreement and thought that it should not have been accepted. they did not realize that this was in fact a great victory for the prophet (pbuh), which allah would later confirm in a revelation. the agreement made sure that the following year they would enter mecca peacefully, and in time would result in muslims becoming stronger and more respected throughout arabia. at the time the treaty was signed the muslims could not have foreseen that the number of people who would travel to medinah to become muslims in the following year would be greater than in all the years before. before the muslims departed, they followed the prophet's example of making sacrifice and either shaving or cutting their hair. even though they were unable to visit the sacred mosque, their pilgrimage was accepted by allah because it had been their true intention.
on the return journey to medinah, the 'victory' chapter of the koran was revealed to the prophet (pbuh). it begins:
in the name of allah, the beneficent, the merciful
"surely we have given thee (0 muhammad) a clear victory, that allah may forgive thee of thy sin that which is past and that which is to come, and may complete his blessings upon thee, and may guide thee on the right path, and that allah may help thee with mighty help". (koran xlviii.1-3)
now most of those who left mecca to join the prophet (pbuh) without the consent of their guardians and were turned back by him as agreed, did not in fact return to mecca, but lived instead in groups along the seashore. then they were joined by others who had left mecca but these groups began to endanger quraysh caravans which were passing by and disrupted their trade because of this, quraysh told the prophet (pbuh) that if he wanted to take these new muslims, they would not ask for them to be returned. the young men, therefore, joined the prophet (pbuh) and the people in mecca and medinah grew more at ease with one another.
the young men from the seashore were shortly followed by those muslims who were still living in abyssinia, and soon the numbers of believers in medinah had doubled.
about this time, khalid ibn al-walid, the great warrior who had defeated the muslims at uhud, set out from mecca for medinah. along the way he met 'amr ibn al-'as, the clever speaker who had pursued the muslims when they fled to abyssinia. 'amr, who had attempted to find asylum in abyssinia, had just returned from that country, the negus having urged him to enter islam. he asked khalid, 'where are you going?' khalid replied, 'the way has become clear. the man is certainly a prophet, and by allah, i am going to become a muslim. how much longer should i delay?' 'amr ibn al-as answered, 'i am travelling for the same reason. so they both traveled on to medinah to join the prophet(pbuh). the two men were, however, worried about meeting the prophet (pbuh) because of having fought against the muslims in the past.
therefore, 'amr came before allah's messenger he said, 'o prophet, will my past faults be forgiven and no mention made of what has gone before?' the prophet (pbuh) replied, 'amr, islam wipes away everything that happened before, as does the hijrah.'
a year after the signing of the treaty of hudaybiyah, the prophet (pbuh) was able to lead two thousand pilgrims on the 'umra. quraysh vacated mecca and watched the rites from the hills above the city. the agreed period of three days was observed, after which the muslims returned to medinah.