In the third year after the Hijra, the Quraysh of Mecca, seeking revenge for their defeat at Badr, marched towards Medina with a large army. The news of their approach reached the Prophet Muhammad (PBUH), who gathered his companions to decide on a strategy. While some suggested defending from within the city, others, particularly those eager for battle, advocated for meeting the enemy outside. The Prophet, initially inclined to stay in Medina, eventually agreed to the latter plan, respecting the majority's decision.

The two forces met at the foot of Mount Uhud. The Prophet positioned a group of archers on a small hill with explicit instructions not to leave their posts, regardless of how the battle unfolded. The battle began favorably for the Muslims, and the Quraysh were driven back. However, seeing the apparent victory, many of the archers abandoned their positions to collect the spoils, despite the Prophet's clear orders.

This disobedience allowed the Quraysh cavalry, led by Khalid ibn al-Walid, to attack from the rear, turning the tide of the battle. The Muslims faced a severe setback, and chaos ensued. During the melee, Hamzah, the Prophet's uncle, was martyred. The Quran later addressed this event, attributing the reverse to a lapse in obedience and discipline among the Muslims, as stated in Quran 3:152-155.

Despite the setback, the Prophet's leadership remained firm. Quran 3:159 highlights his gentle and consultative approach following the battle, emphasizing the importance of mercy and unity among the believers even in the face of adversity.