Abu Bakr
Battles of Hunayn and Ta'if

In 630, the Muslim army was ambushed by archers from the local tribes as it passed through the valley of Hunayn, some eleven miles northeast of Mecca. Taken unaware, the advance guard of the Muslim army fled in panic. There was considerable confusion, and the camels, horses and men ran into one another in an attempt to seek cover. Muhammad, however, stood firm. Only nine companions remained around him, including Abu Bakr. Under Muhammad's instruction, his uncle Abbas shouted at the top of his voice, "O Muslims, come to the Prophet of Allah". The call was heard by the Muslim soldiers and they gathered beside Muhammad. When the Muslims had gathered in sufficient number, Muhammad ordered a charge against the enemy. In the hand-to-hand fight that followed the tribes were routed and they fled to Autas.

Muhammad posted a contingent to guard the Hunayn pass and led the main army to Autas. In the confrontation at Autas the tribes could not withstand the Muslim onslaught. Believing continued resistance useless, the tribes broke camp and retired to Ta'if.

Abu Bakr was commissioned by Muhammad to lead the attack against Ta'if. The tribes shut themselves in the fort and refused to come out in the open. The Muslims employed catapults, but without tangible result. The Muslims attempted to use a testudo formation, in which a group of soldiers shielded by a cover of cowhide advanced to set fire to the gate. However, the enemy threw red hot scraps of iron on the testudo, rendering it ineffective.

The siege dragged on for two weeks, and still there was no sign of weakness in the fort. Muhammad held a council of war. Abu Bakr advised that the siege might be raised and that God make arrangements for the fall of the fort. The advice was accepted, and in February 630, the siege of Ta'if was raised and the Muslim army returned to Mecca. A few days later Malik bin Auf, the commander, came to Mecca and became a Muslim.
startend:quotation, combination:repeat_prompt