To be right with God has often meant to be in trouble with men.
In the 15th chapter of John it says:
If the world hates you, keep in mind that it hated me first. If you belonged to the world, it would love you as its own. As it is, you do not belong to the world, but I have chosen you out of the world. That is why the world hates you.