قُل لِّلَّذِينَ كَفَرُوٓا۟ إِن يَنتَهُوا۟ يُغْفَرْ لَهُم مَّا قَدْ سَلَفَ وَإِن يَعُودُوا۟ فَقَدْ مَضَتْ سُنَّتُ ٱلْأَوَّلِينَ
“Tell the disbelievers that if they desist, their past will be forgiven. But if they persist, then they have an example in those destroyed before them.”
Surah al-Anfal was revealed on the plains of Badr regarding the battle and its aftermath.