"Those before them denied," meaning: before your people, O Muhammad.
"So the torment came upon them from where they did not perceive," it came upon them suddenly.