“I have stored up your word in my heart, that I might not sin against you.”
Psalm 119:11 ESV
https://www.bible.com/59/psa.119.11.esv
There’s not really more to say about this. If His word fills our hearts then there’s not much room left for sin to take hold. While reading His word daily is a good first step, I know I need to commit more of His word to my heart by memorization in not just the words but the meaning and love behind them.