Sura Al-Ahqaf

46:18

أُو۟لَٰٓئِكَ ٱلَّذِينَ حَقَّ عَلَيْهِمُ ٱلْقَوْلُ فِىٓ أُمَمٍۢ قَدْ خَلَتْ مِن قَبْلِهِم مِّنَ ٱلْجِنِّ وَٱلْإِنسِ ۖ إِنَّهُمْ كَانُوا۟ خَٰسِرِينَ

Och över [sådana som] denne skall samma dom osvikligt fällas som den som fälldes över tidigare släkten av osynliga väsen och människor; ja, de kommer att höra till förlorarna!

Tafsir 46:18

Those are the ones for whom punishment is established amongst the nations before them from the jinns and men. They were the losers, as they lost themselves and their children by entering the fire.