Sure Al-Hashr

59:3

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

Und wenn Allah ihnen nicht die Verbannung vorgeschrieben hätte, hätte Er sie wahrlich im Diesseits gestraft; und im Jenseits wird es für sie die Strafe des (Höllen)feuers geben.

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.