سُبْحَانَ ٱللَّٰهِ
Holy Qur'an
Al-Qur'an
Kids Qur'an
I.e., they will realize in the hereafter the full extent of the self-deception which has led to their spiritual ruin.
The word ghai can either mean the evil consequences or a valley in Hell where they will be punished.
This selfish godless posterity gains the upper hand at certain times, but even then there is always a minority who see the error of their ways, repent and believe, and live righteous lives. They are not penalised in the Hereafter because they were associated with the ungodly in time. They reap the full reward of their faith and righteousness.