Sure Al-Ankaboot

29:66

لِيَكْفُرُوا۟ بِمَآ ءَاتَيْنَٰهُمْ وَلِيَتَمَتَّعُوا۟ ۖ فَسَوْفَ يَعْلَمُونَ

um undankbar zu sein für das, was Wir ihnen gegeben haben, und um zu genießen; sie werden (es noch) erfahren.

Tafsir 29:66

They return to their idolatry so that they can continue showing ingratitude for My favours upon them and so that they can carry on enjoying the beauty of the worldly life. They will soon know the evil punishment that awaits them when they die.