Surah Al-Qasas, Verse 78
Translation — Sahih International
He said, "I was only given it because of knowledge I have." Did he not know that Allah had destroyed before him of generations those who were greater than him in power and greater in accumulation [of wealth]? But the criminals, about their sins, will not be asked.
Source
Kur'an-ı Kerim, Kasas Suresi 28:78
https://kuran.diyanet.gov.tr/mushaf/kuran-meal-2/28-suresi-78-ayet