“God hated Esau?”

Why does God say “Jacob I loved, Esau I hated”? I know God‘s grace, but I feel tripped up by worries about my prayer life and trying to get closer to God. Can you help me?