The Battle of Ta'if
The warriors of Thaqif who fled from Hunayn returned to Ta’if. They closed the gates of the city after storing stocks of food enough to serve them for a year. Thus, they prepared themselves in time for another encounter with the Muslims.
The Prophet (sallallahu `alayhi wa sallam) went at once to Ta’if. After establishing his camp outside the city, he set about besieging it in order to humble the enemy. The siege lingered on for sometime, but the Muslims, whose avenues of entry had already been blocked up by the defenders, were unable to enter Ta’if. Thaqif combatants were good archers, so that the thick volley of arrows released by them appeared as if they were like swarms of locusts.