"And indeed, those who do not believe in the Hereafter are deviating from the path," meaning: they are abandoning it.