<p>In 625 A.D. (3 H.), the Muslims of <a href="https://www.thoughtco.com/madinah-city-guide-2004426" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">Madinah</a> learned a difficult lesson during the Battle of Uhud. When attacked by an invading army from Makkah, it initially looked like the small group of defenders would win the battle. But at a key moment, some fighters disobeyed orders and left their posts out of greed and pride, ultimately causing the Muslim army a crushing defeat. It was a trying time in the history of Islam.</p><p>After the Muslims&#39; <a href="https://www.thoughtco.com/overview-of-the-islamic-calendar-2003736" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">migration from Makkah</a>, the powerful Makkan tribes assumed that the small group of Muslims would be without protection or strength. Two years after the <a href="https://www.thoughtco.com/overview-of-the-islamic-calendar-2003736" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="2">Hijrah</a>, the Makkan army attempted to eliminate the Muslims in the <a href="https://www.thoughtco.com/biography-of-the-prophet-muhammads-later-life-2004472" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="3">Battle of Badr</a>. The Muslims showed that they could fight against the odds and defend Madinah from invasion. After that humiliating defeat, the Makkan army chose to come back in full force and try to wipe out the Muslims for good.</p><p>The following year (625 A.D.), they set out from Makkah with an army of 3,000 fighters led by Abu Sufyan. The Muslims gathered to defend Madinah from invasion, with a small band of 700 fighters, led by the Prophet Muhammad himself. The Makkan cavalry outnumbered the Muslim cavalry with a 50:1 ratio. The two mismatched armies met at the slopes of Mount Uhud, just outside the city of Madinah.</p>Using Madinah&#39;s natural geography as a tool, the Muslim defenders took up positions along the slopes of Mount Uhud. The mountain itself prevented the attacking army from penetrating from that direction. The Prophet Muhammad assigned about 50 archers to take up post on a nearby rocky hill, to prevent the vulnerable Muslim army from attack at the rear. This strategic decision was meant to protect the Muslim army from being surrounded or encircled by the opposing cavalry.<p>The archers were under orders to never leave their positions, under any circumstances, unless ordered to do so.</p>After a series of individual duels, the two armies engaged. The confidence of the Makkan army quickly began to dissolve as Muslim fighters worked their way through their lines. The Makkan army was pushed back, and all attempts to attack the flanks were thwarted by the Muslim archers on the hillside. Soon, Muslim victory appeared certain.<p>At that critical moment, many of the archers disobeyed orders and ran down the hill to claim the spoils of war. This left the Muslim army vulnerable and shifted the outcome of the battle.</p>As the Muslim archers abandoned their posts out of greed, the Makkan cavalry found their opening. They attacked the Muslims from the rear and cut off groups from one another. Some engaged in hand-to-hand combat, while others tried to retreat to Madinah. Rumors of the Prophet Muhammad&#39;s death caused confusion. The Muslims were overrun, and many were injured and killed.<p>The remaining Muslims retreated to the hills of Mount Uhud, where the Makkan cavalry could not ascend. The battle ended and the Makkan army withdrew.</p><p>Nearly 70 prominent early Muslims were killed in the Battle of Uhud, including Hamza bin Abdul-Mutallib, Musab ibn Umayr (may Allah be pleased with them). They were buried on the battlefield, which is now marked as the graveyard of Uhud. The Prophet Muhammad was also injured in the fighting.</p><p>The Battle of Uhud taught the Muslims important lessons about greed, military discipline, and humility. After their previous success at the Battle of Badr, many had thought that victory was guaranteed and a sign of Allah&#39;s favor. A verse of the Quran was revealed soon after the battle, which chastised the Muslims&#39; disobedience and greed as the reason for defeat. Allah describes the battle as both a punishment and a test of their steadfastness.</p><blockquote>Allah did indeed fulfill His promise to you when you, with His permission, were about to annihilate your enemy, until you flinched and fell to disputing about the order, and disobeyed it after He brought you in sight (of the booty) which you covet. Among you are some that hanker after this world and some that desire the Hereafter. Then did He divert you from your foes in order to test you. But He forgave you, For Allah is full of grace to those who believe. -Quran 3:152</blockquote>However, the Makkan victory was not complete. They were not able to achieve their ultimate aim, which was to destroy the Muslims once and for all. Rather than feeling demoralized, the Muslims found inspiration in the Quran and reinforced their commitment. The two armies would meet again at the <a href="https://www.thoughtco.com/biography-of-the-prophet-muhammads-later-life-2004472" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">Battle of the Trench</a> two years later.