The battle was joined at Hunayn, a valley between Makka and Ta'if. The new converts in the Muslim ranks had more enthusiasm than wisdom, more a spirit of elation than of faith and confidence in the righteousness of their cause. The enemy had the advantage of knowing the ground thoroughly. They laid an ambush in which the advance guard of the Muslim forces was caught or intentionally pushed by God's Messenger, upon him be peace and blessings, who might have planned to draw the enemy in under the guise of retreat. However, the retreat was in confusion, under a shower of enemy arrows. The Prophet, as ever, was calm in his faith and wisdom in that hour of danger and spurred his horse forward. His uncle 'Abbas was on his right and Fadl, the son of Abbas, on his left. While Abu Sufyan ibn al-Harith was trying to stop him, he was crying: Now war has been kindled. I am the Prophet, that is no lie. I am the descendant of 'Abd al-Muttalib. (1)
'Abbas called out at the top of his voice: 'Companions who made the pledge of allegiance under the acacia tree!' (2) There- upon, from all sides the Companions responded 'Labbayk' (at your service!), and rallied to the Prophet. The enemy, who had pushed themselves into the centre of the Muslim army, were surrounded from all sides. The courage, wisdom and steadfastness of God's Messenger changed a seeming defeat into a decisive victory. It was by God's help that the Muslims won the day. They completed the victory with an energetic pursuit of the enemies, capturing their camps, their flocks and herds, and their families, whom they had boastfully brought with them in expectation of an easy victory.
The routed enemy took refuge in Ta'if. The Muslim victory persuaded the desert tribes to accept Islam and shortly thereafter the rebel tribes and Ta'if also surrendered and entered Islam.
2. I. Kathir, 4.373.