Surah Al-Hashr

59:3

وَلَوْلَآ أَن كَتَبَ ٱللَّهُ عَلَيْهِمُ ٱلْجَلَآءَ لَعَذَّبَهُمْ فِى ٱلدُّنْيَا ۖ وَلَهُمْ فِى ٱلْءَاخِرَةِ عَذَابُ ٱلنَّارِ

And if not that Allah had decreed for them evacuation, He would have punished them in [this] world, and for them in the Hereafter is the punishment of the Fire.

Tafsir 59:3

Had it not been that Allah had decreed exile for them, He would have punished them in the world with execution and captivity, like He did with their brothers from the Banū Qurayḍah. And for them in the afterlife is the punishment of the hellfire that awaits them, wherein they shall live forever.