Look up Proverbs 1:24-33. God is telling us that He will not listen when we call on Him if we are not listening to what He has already told us. He also says that we won’t be able to find Him when looking for Him if we won’t listen. While this may seem harsh, every parent understands that after telling your children for the hundredth time not to do something, but one child still does it, then the parent is less compassionate towards him than the other child who listened the first time. Like that parent, God wants us to listen to Him and to learn. If we refuse to listen and end up learning the hard way, that is our own fault. God is most certainly a loving God, but He is also a just God.