Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:8:12

˹Remember˺ when your Lord inspired to the angels, "I am with you, so strengthen those who have believed. I will cast terror into the hearts of those who disbelieved, so strike ˹them˺ upon the necks and strike from them every fingertip."  

When your Lord inspired the angels, with whom He reinforced the Muslims, ˹saying˺: ‘I am with you, with assistance and victorious help, so make the believers stand firm, by helping ˹them˺ and giving ˹them˺ good tidings. I shall cast terror, fear, into the hearts of the disbelievers; so smite above the necks, that is, the heads, and smite of them every finger!’, that is, ˹smite˺ the extremities of their hands and feet: thus, when one of them went to strike an disbeliever’s head, it would roll off before his sword reached it. The Prophet (s) threw a handful of pebbles against them and every single idolater was struck in his eye, and thus they were defeated.
القرآن:٨:١٢

إِذْ يُوحِي رَبُّكَ إِلَى الْمَلَائِكَةِ أَنِّي مَعَكُمْ فَثَبِّتُوا الَّذِينَ آمَنُوا ۚ سَأُلْقِي فِي قُلُوبِ الَّذِينَ كَفَرُوا الرُّعْبَ فَاضْرِبُوا فَوْقَ الْأَعْنَاقِ وَاضْرِبُوا مِنْهُمْ كُلَّ بَنَانٍ  

{إذ يوحي ربك إلى الملائكة} الذين أمد بهم المسلمين {أني} أي بأني {معكم} بالعون والنصر {فثبِّتوا الذين آمنوا} بالإعانة والتبشير {سألقي في قلوب الذين كفروا الرعب} الخوف {فاضربوا فوق الأعناق} أي الرءوس {واضربوا منهم كل بنان} أي أطراف اليدين والرجلين فكان الرجل يقصد ضرب رقبة الكافر فتسقط قبل أن يصل إليه سيفه ورماهم ﷺ بقبضة من الحصى فلم يبق مشرك إلا دخل في عينيه منها شيء فهزموا.