Jesus spoke these words in John 16:33 

These things I have spoken unto you, that in Me you might have peace.

In the world you shall have tribulation: but be of good cheer; I have overcome the world.