Vâhidî
The verse "when the angels take the souls of those who wronged themselves..." was revealed about a group in Mecca who professed Islam with their mouths but did not emigrate, showing belief while concealing hypocrisy — on the day of Badr they went into battle against the Muslims alongside the polytheists and were killed, the angels struck their faces and backs, saying the words God mentions. A similar account via Ikrima from Ibn Abbas: in Mecca there was a group of Muslims who went into battle with the polytheists and were killed with them, whereupon this verse was revealed.
قوله تعالى: {إن الذين توفاهم الملائكة ظالمي أنفسهم} الآية {97} . نزلت هذه الآية في ناس من أهل مكة تكلموا بالإسلام ولم يهاجروا وأظهروا الإيمان وأسروا النفاق، فلما كان يوم بدر خرجوا مع المشركين إلى حرب المسلمين فقتلوا، فضربت الملائكة وجوههم وأدبارهم، وقالوا ms119 لهم ما ذكر الله سبحانه. (1) - أخبرنا أبو بكر الحارثي قال: أخبرنا أبو الشيخ الحافظ قال: أخبرنا أبو يحيى قال: حدثنا سهل بن عثمان قال: حدثنا عبد الرحيم بن سليمان، عن أشعث بن سوار عن عكرمة، عن ابن عباس: {إن الذين توفاهم الملائكة PageV01P177 ظالمي أنفسهم} وتلاها إلى آخرها قال: كانوا قوما من المسلمين بمكة، فخرجوا في قوم من المشركين في قتال فقتلوا معهم، فنزلت هذه الآية.
Süyûtî
From al-Bukhari, related from Ibn Abbas: some Muslims stayed with the polytheists, swelling their numbers against the Prophet, an arrow shot would strike and kill one of them, or they would be struck down and die, whereupon this verse was revealed — in Ibn Mardawayh's account their names are listed: Qays ibn al-Walid ibn al-Mughira, Abu Qays ibn al-Fakih ibn al-Mughira, al-Walid ibn Utba ibn Rabi'a, Amr ibn Umayya ibn Sufyan, Ali ibn Umayya ibn Khalaf — when they marched to Badr and saw the small number of Muslims, they fell into doubt, saying, "these have been deceived by their religion," and were killed at Badr; in Ibn Abi Hatim's account, al-Harith ibn Zam'a ibn al-Aswad and al-As ibn Munabbih ibn al-Hajjaj are also named. A different account from al-Tabarani, from Ibn Abbas: a group that embraced Islam in Mecca hesitated and feared to emigrate when the Prophet emigrated, whereupon this verse (down to the exception of the "weak") was revealed. From Ibn al-Mundhir and Ibn Jarir: a group who concealed their Islam in Mecca was forcibly taken by the polytheists on the day of Badr, some were killed, the Muslims said, "these were Muslims but were coerced," and sought forgiveness for them, whereupon this verse was revealed; this verse was written and sent to those remaining behind, informing them they had no more excuse, they too set out, but the polytheists caught up with them and cast them into temptation, they turned back, whereupon the verse "some people say, we believe in God, but when harmed for God's sake, they equate the harm from people with God's punishment" was revealed; when the Muslims wrote this to them, they grieved, whereupon the verse "then indeed, your Lord, for those who emigrated after being persecuted..." was revealed; when this too was written to them, they set out again, the polytheists caught up with them, some escaped, some were killed.
قوله تعالى {إن الذين توفاهم} الآية روى البخاري عن ابن عباس أن أناسا من المسلمين كانوا مع المشركين يكثرون سواد المشركين على رسول الله صلى الله عليه وسلم فيأتي السهم يرمي به فيصيب أحدهم فيقتله أو يضرب PageV01P078 فيقتل فأنزل الله {إن الذين توفاهم الملائكة ظالمي أنفسهم} وأخرجه ابن مردويه وسمى منهم في روايته قيس بن الوليد بن المغيرة وأبا قيس بن الفاكه بن المغيرة والوليد بن عتبه بن ربيعة وعمرو بن امية بن ms061 سفيان وعلي ابن أمية بن خلف وذكر في شأنهم أنهم خرجوا إلى بدر فلما رأوا قلة المسلمين دخلهم شك وقالوا غر هؤلاء دينهم فقتلوا ببدر وأخرجه ابن أبي حاتم وزاد منهم الحرث بن زمعة بن الأسود والعاص ابن منبه بن الحجاج واخرج الطبراني عن ابن عباس قال كان قوم بمكة قد أسلموا فلما هاجر رسول الله صلى الله عليه وسلم كرهوا أن يهاجروا وخافوا فأنزل الله {إن الذين توفاهم الملائكة ظالمي أنفسهم} إلى قوله {إلا المستضعفين} وأخرج ابن المنذر وابن جرير عن ابن عباس قال كان قوم من أهل مكة قد أسلموا وكانوا يخفون الإسلام فأخرجهم المشركون معهم يوم بدر فأصيب بعضهم فقال المسلمين هؤلاء كانوا مسلمون فأكرهوا فاستغفروا لهم فنزلت {إن الذين توفاهم الملائكة} الآية فكتبوا بها إلى من بقي بمكة منهم وأنه لا عذر لهم فخرجوا فلحق بهم المشركون ففتنوهم فرجعوا فنزلت {ومن الناس من يقول آمنا بالله فإذا أوذي في الله جعل فتنة الناس كعذاب الله} فكتب اليهم المسلمون بذلك فتحزنوا فنزلت {ثم إن ربك للذين هاجروا من بعد ما فتنوا} الآية فكتبوا اليهم بذلك فخرجوا فلحقوهم فنجا من نجا وقتل من قتل واخرج ابن جرير من طرق كثيرة نحوه