Surah Aal-i-Imraan

3:11

كَدَأْبِ ءَالِ فِرْعَوْنَ وَٱلَّذِينَ مِن قَبْلِهِمْ ۚ كَذَّبُوا۟ بِـَٔايَٰتِنَا فَأَخَذَهُمُ ٱللَّهُ بِذُنُوبِهِمْ ۗ وَٱللَّهُ شَدِيدُ ٱلْعِقَابِ

[Theirs is] like the custom of the people of Pharaoh and those before them. They denied Our signs, so Allah seized them for their sins. And Allah is severe in penalty.

Tafsir 3:11

The case of these disbelievers is like that of the people of Pharaoh, and those before them who disbelieved in Allah and denied His signs. As a result, Allah punished them for their sins – their wealth and children did not benefit them. Allah is severe in punishing those who disbelieve in Him and His signs.