[Machine] Ubayy ibn Khalaf came to the Prophet ﷺ on the day of Uhud and some believers intercepted him. The Messenger of Allah ﷺ ordered them to let him go, so Mus`ab ibn `Umayr, the brother of Bani Abd Ad-Dar, intercepted him and saw a slit in Ubayy's throat between his wide neck and his white armor. Mus`ab stabbed him with his spear, causing Ubayy to fall off his horse, but no blood came out from his stab; instead, it broke one of his ribs. His companions approached him while he was writhing in pain, and they said to him, "This is just a scratch, what made you so weak?" He reminded them of the words of the Messenger of Allah ﷺ that he said, "Rather, I have slain Ubayy!" Then he said, "By the One in Whose Hand is my soul! If it was not for my status before Allah, the inhabitants of Dhi Al-Majaz would have all been killed." Ubayy died in the fire, a wretched fate for the people of Sa`ir before he could reach Makkah. Allah then revealed the Ayah: "And you threw not when you did throw, but Allah threw" (8:17).
أَقْبَلَ أُبَيُّ بْنُ خَلَفٍ يَوْمَ أُحُدٍ إِلَى النَّبِيِّ ﷺ يُرِيدُهُ فَاعْتَرَضَ رِجَالٌ مِنَ الْمُؤْمِنِينَ فَأَمَرَهُمْ رَسُولُ اللَّهِ ﷺ فَخَلَّوْا سَبِيلَهُ فَاسْتَقْبَلَهُ مُصْعَبُ بْنُ عُمَيْرٍ أَخُو بَنِي عَبْدِ الدَّارِ وَرَأَى رَسُولُ اللَّهِ ﷺ تُرْقُوَةَ أُبَيٍّ مِنٍ فُرْجَةٍ بَيْنَ سَابِغَةِ الدِّرْعِ وَالْبَيْضَةِ فَطَعَنَهُ بِحَرْبَتِهِ فَسَقَطَ أُبَيٌّ عَنْ فَرَسِهِ وَلَمْ يَخْرُجْ مِنْ طَعْنَتِهِ دَمٌ فَكَسَرَ ضِلَعًا مِنْ أَضْلَاعِهِ فَأَتَاهُ أَصْحَابُهُ وَهُوَ يَخُورُ خُوَارَ الثَّوْرِ فَقَالُوا لَهُ مَا أَعْجَزَكَ إِنَّمَا هُوَ خَدْشٌ فَذَكَرَ لَهُمْ قَوْلَ رَسُولِ اللَّهِ ﷺ «بَلْ أَنَا أَقْتُلُ أُبَيًّا» ثُمَّ قَالَ وَالَّذِي نَفْسِي بِيَدِهِ لَوْ كَانَ هَذَا الَّذِي بِي بِأَهْلِ ذِي الْمَجَازِ لَمَاتُوا أَجْمَعِينَ فَمَاتَ أُبَيٌّ إِلَى النَّارِ فَسُحْقًا لِأَصْحَابِ السَّعِيرِ قَبْلَ أَنْ يَقْدَمَ مَكَّةَ فَأَنْزَلَ اللَّهُ {وَمَا رَمَيْتَ إِذْ رَمَيْتَ وَلَكِنَّ اللَّهَ رَمَى} [الأنفال 17] الْآيَةُ