Surah Al-Anfal, ayah 68

8:68

لَّوۡلَا كِتَٰبٞ مِّنَ ٱللَّهِ سَبَقَ لَمَسَّكُمۡ فِيمَآ أَخَذۡتُمۡ عَذَابٌ عَظِيمٞ ٦٨

Llawlā kitābum minallāhi sabaqa lamassakum fīmā akhadhtum 'adhābun 'azīm

If not for a decree from Allāh that preceded,458 you would have been touched for what you took by a great punishment.

Footnotes

458 Three interpretations of the "decree" are given: that by which the companions of Badr were forgiven, that by which indeliberate errors in judgement by believers are not punished, and that which made lawful the spoils of war.