لِيَقْطَعَ طَرَفًۭا مِّنَ ٱلَّذِينَ كَفَرُوٓا۟ أَوْ يَكْبِتَهُمْ فَيَنقَلِبُوا۟ خَآئِبِينَ
Sura Aal-i-Imraan
Tafsir 3:127
Your victory in the Battle of Badr was because Allah willed that a group of the disbelievers be destroyed, and another be humiliated, frustrating them through defeat so that they withdrew.