Muhammad went to the city of Ta’if and invited the people there to Islam.
Initially the preaching of Islam by Muhammad had been confined to Mecca, and his success was rather modest, limited to 170 men and women in the city during a ten-year period. Nevertheless, in 619 during the Year of Sorrow his main source of support, his uncle Abu Talib ibn ‘Abd al-Muttalib and his loving wife Hazrat Khadija died.
Now, not just the elite of Mecca attacked Muhammad, but even young children hurled dust and insults at him. Muhammad soon realized that there was no hope left for the Meccans to accept his religion, and he thus looked to the south, to the sister city of Ta’if, for the preaching of Islam, so Muhammad and his adopted son, Zayd ibn Harithah went to Ta’if to invite the people there to Islam.
Muhammad was received by the three chiefs of the local tribes of Ta’if and they let him freely have his say, however, they paid little heed to his message. After a while they even showed signs of apprehension lest his welcome in Ta’if might embroil them with the Meccans, so they left him to be dealt with by street urchins and the riff raff of the town.
By rejecting Muhammad's religion, the people of Ta'if ordered their children to throw rocks and stones at Muhammad and Zayd ibn Harithah to make them leave the city and never come back. Muhammad and Zayd ibn Harithah were finally turned out by mocking and jeering crowds. The rocks that were thrown at Muhammad and Zayd by the Ta'if children caused them to bleed. Both were wounded and bleeding as they left Ta’if behind them. Muhammad bled so profusely from the stoning that his feet became clotted to his shoes.
Once Muhammad and Zayd ibn Harithah were outside the city walls, Muhammad almost collapsed. They went a short distance outside of the town and stopped in an orchard that belonged to two Meccans who were there at the time.
The owners of the orchard had seen Muhammad been persecuted in Mecca and on this occasion they felt some sympathy toward their fellow townsman. They sent a slave who took Muhammad into his hut, dressed his wounds, and let him rest and recuperate until he felt strong enough to resume his journey across the rough terrain between Ta’if and Mecca. It was there that the angel Gabriel came to him with the Angel of the Mountains and said that if Muhammad wanted, he would blow the mountains over the people of Ta’if (or crush the people of taif in between the mountains).