The Muslims initially emerged victorious from the battle of Uhud, but the archers disobeyed the Prophet's command and eventually the Muslims were defeated. Some of the Muslims fled the battlefield, until they reached some villages close to a mountain near Madīnah. They then returned to the Messenger of Allah (may Allah's peace and blessings be upon him). During the battle, Hanzhalah ibn ‘Āmir fought against Abu Sufyān ibn Harb, the leader of the polytheists. When Hanzhalah was about to kill him, a polytheist called Shaddād ibn al-Aswad saw Hanzhalah and killed him with his sword. When the battle was over, the Messenger of Allah (may Allah's peace and blessings be upon him) told the Muslims that the angels were washing Hanzhalah. He asked them to ask his wife about his condition before he set out for the battle. They asked her, and she told them that when Hanzhalah heard the call for Jihad he set out in a state of ritual impurity. So the Messenger of Allah (may Allah's peace and blessings be upon him) told them that the angels had washed Hanzhalah because he was martyred in a state of ritual impurity.