Surah An-Naba

78:27

إِنَّهُمْ كَانُوا۟ لَا يَرْجُونَ حِسَابًۭا

Indeed, they were not expecting an account

Tafsir 78:27

Indeed, in the world, they did not fear the Allah taking them to account in the afterlife, because they did not bring faith in the resurrection. So if they had feared the resurrection, they would have brought faith in Allah and performed good deeds.