Surah Al-Anfal (الأنفال) · verse 68 (Medinan · Juz 10 · page 185)
لَّوْلَا كِتَٰبٌ مِّنَ ٱللَّهِ سَبَقَ لَمَسَّكُمْ فِيمَآ أَخَذْتُمْ عَذَابٌ عَظِيمٌ ﴿68﴾
التفسير الميسر
لولا كتاب من الله سبق به القضاء والقدر بإباحة الغنيمة وفداء الأسرى لهذه الأمة، لنالكم عذاب عظيم بسبب أخْذكم الغنيمة والفداء قبل أن ينزل بشأنهما تشريع
Sahih International
If not for a decree from Allah that preceded, you would have been touched for what you took by a great punishment
Marmaduke Pickthall
Had it not been for an ordinance of Allah which had gone before, an awful doom had come upon you on account of what ye took
Abdullah Yusuf Ali
Had it not been for a previous ordainment from Allah, a severe penalty would have reached you for the (ransom) that ye took