Psalm 95 tells us, and the book of Hebrews repeats:
“If today You hear His voice, harden not Your hearts...”
Yes, God speaks into our hearts, but we can also choose to reject God’s voice.
It’s called disobedience. Later in Hebrews (Ch 12) the author states that God disciplines his children in order to bring them back into fellowship with Himself.