How can we remove animosty and grudges from our heart even when the person we hate will continue to hurt us in the future.

I just don’t want to lose my good deeds due to resentment.

You are allowed to disassociate from people who are hurting you or will hurt you. If they are against your faith, you don’t have to love them.