يَـٰٓأَيُّهَا ٱلَّذِينَ ءَامَنُوٓا۟ إِن تَتَّقُوا۟ ٱللَّهَ يَجْعَل لَّكُمْ فُرْقَانًۭا وَيُكَفِّرْ عَنكُمْ سَيِّـَٔاتِكُمْ وَيَغْفِرْ لَكُمْ ۗ وَٱللَّهُ ذُو ٱلْفَضْلِ ٱلْعَظِيمِ
“O believers! Do not betray Allah and the Messenger, nor betray your trusts knowingly. And know that your wealth and your children are only a test and that with Allah is a great reward. O believers! If you are mindful of Allah, He will grant you a standard [to distinguish between right and wrong], absolve you of your sins, and forgive you. And Allah is the Lord of infinite bounty.”
Surah al-Anfal was revealed on the plains of Badr regarding the battle and its aftermath.