Gospel of Thomas.
68. Jesus said, "Congratulations to you when you are hated and persecuted; and no place will be found, wherever you have been persecuted."
The Nag Hammadi Library,The Gospel of Thomas,Translated by Stephen Patterson and Marvin Meyer,These are the secret sayings that the living Jesus spoke and Didymos Judas Thomas recorded. And he said, "Whoever discovers the interpretation of these sayings will not taste death."