"They rejoiced in what they had of knowledge," meaning: their knowledge according to themselves, which is their saying: 'We will never be resurrected and we will never be punished.' "And they were encompassed by"—meaning, it became incumbent upon them—"what they used to mock," meaning: the punishment for their mockery.