I'm not really sure which scripture that the OP is trying to refer to, I cannot find one that says that but I thought maybe it was paraphrase of John 15:17-18 and maybe also verse 22?
17 These things I command you, that ye love one another.
18 If the world hate you, ye know that it hated me before it hated you.
19 If ye were of the world, the world would love his own: but because ye are not of the world, but I have chosen you out of the world, therefore the world hateth you.
22 If I had not come and spoken unto them, they had not had sin: but now they have no cloak for their sin.
Now, I could be totally wrong on this because it does seem to me that these scriptures don't really say what it appears the OP is saying but this was my best try.
Anyway the bible is quite clear in my opinion that God is love and we are to love everyone, bless those that curse us and do good to those that despitefully use us. Not an easy standard to live by to be sure.