8:7

[Remember, Allah promised you victory over one of the two enemy parties and you wished for the one which was unarmed but Allah intended to prove the truth to be true according to His words and to cut off the roots of the unbelievers,