وَاِذْ يَعِدُكُمُ اللّٰهُ اِحْدَى الطَّاۤىِٕفَتَيْنِ اَنَّهَا لَكُمْ وَتَوَدُّوْنَ اَنَّ غَيْرَ ذَاتِ الشَّوْكَةِ تَكُوْنُ لَكُمْ وَيُرِيْدُ اللّٰهُ اَنْ يُّحِقَّ الْحَقَّ بِكَلِمٰتِهٖ وَيَقْطَعَ دَابِرَ الْكٰفِرِيْنَۙ ( الأنفال: ٧ )
Wa iz ya'idukumul laahu ihdat taaa'ifataini annahaa lakum wa tawaddoona anna ghaira zaatish shawkati takoonu lakum wa yureedul laahu ai yuhiqqal haqqa bikalimaatihee wa taqta'a daabiral kaafireen (al-ʾAnfāl 8:7)
Sahih International:
[Remember, O believers], when Allah promised you one of the two groups – that it would be yours – and you wished that the unarmed one would be yours. But Allah intended to establish the truth by His words and to eliminate the disbelievers (Al-Anfal [8] : 7)
1 Mufti Taqi Usmani
And recall when Allah was promising you that one of the two groups would become yours, and you were wishing that the one without strength should fall to you. And Allah wanted to establish the truth through His words and to cut off the very root of the disbelievers,