وَٱتَّقُوا۟ فِتْنَةًۭ لَّا تُصِيبَنَّ ٱلَّذِينَ ظَلَمُوا۟ مِنكُمْ خَآصَّةًۭ ۖ وَٱعْلَمُوٓا۟ أَنَّ ٱللَّهَ شَدِيدُ ٱلْعِقَابِ
“Beware of a trial that will not only affect the wrongdoers amongst you. And know that Allah is severe in Punishment.”
Surah al-Anfal was revealed on the plains of Badr regarding the battle and its aftermath.