وَإِن يُرِيدُوا۟ خِيَانَتَكَ فَقَدْ خَانُوا۟ ٱللَّهَ مِن قَبْلُ فَأَمْكَنَ مِنْهُمْ ۗ وَٱللَّهُ عَلِيمٌ حَكِيمٌ
“But if their intention is only to betray you [O Prophet], they sought to betray Allah before. But He gave you power over them. And Allah is All-Knowing, All-Wise.”
Surah al-Anfal was revealed on the plains of Badr regarding the battle and its aftermath.