Hebrews 13:1-6 has to 2 connections.
1. Loving and hating. It calls us to love correctly and hate correctly.
Love fellow believers as brothers and sisters in Christ.
Love the strangers by caring for them.
Love the prisoners (those who are mistreated) by remembering them.
Love your spouse with sexual purity.
Hate sexual sins completely and stay far away from them.
Love contentment (know God loves you and takes care of you).
Hate covetousness (greed) and never love money wrongly (idolatry).
2. Both the grace of God and the fear of God are the foundation to loving and hating correctly as in Hebrews 12:28-29.
"Therefore, since we are receiving a kingdom which cannot be shaken, let us have grace, by which we may serve God acceptably with reverence and godly fear. For our God is a consuming fire."
The grace of God and the fear of God are never opposing, liken to the two sides of the coin. Where there is proper understanding of grace, it manifests in healthy fear of God. And the end result is loving correctly and hating correctly. And without them we love and hate wrongly, and hurt others and destroy ourselves
Lord, I need you to help me because I tend to love what you hate and hate what you love. Pour your grace and fear of you in my heart over and over again so that I love what you love and hate what you hate, that my heart be aligned to yours. In your mercy, hear our prayer. Amen