Don't hate and don't retaliate. We don't know the reasons why God allows us to suffer unfairness, mistreatment, harassment, persecution and other types of attacks, but he always has a plan for us.
The Word encouragingly tells us that all things, not some things, all things work together for good to those of us who love him, who are the called and always according to his purpose. Romans 8:28 We also understand that the good will of God towards us, while primarily for the World to come, is also for our present place of habitation. Luke 18:30
It is Our Father's will that some of the good that is built through trials and tribulations come to us during our present, earthly life. All things work together for good but some we will receive after we leave this dying world. In Hebrews 11:13-17,39-40, we read a summary of faithful Believers who journeyed through a life of commitment to God but left this world not having received the promise despite all that they endured.
One thing is sure. God does not and cannot lie. Every jot and tittle of his Word will come to pass. Matthew 5:18 We can have faith that none of our endurance, suffering, sorrow and tears will be wasted. If we are faithful to God and determine to not hate those who show hate towards us, and not retaliate against those who are malicious towards us, we will eventually receive good through their ill will and hurtful actions.
So we, as faithful followers of Jesus Christ, choose not to hate and not to retaliate in thought, word or deed. We choose to love (with God's love because our flesh cannot love with purity) and let God handle the repayment and vindication against those who offend. I will repay, says Our Father regarding those who are on a mission to malign others. Romans 12:19-21 Our rewards, both here and in the New Heaven and the New Earth, are worth waiting for through Godly endurance of all that he allows. We choose to love and let God.