“Lead me in the path of your commandments, for I delight in it.”
Obedience will bring delight to those who are saved. This is obviously not always the case, and so the caveat is that we are still to be obedient even when we don’t feel like it. However, we should be thinking about how much more joyful it has been to obey, as well as the multiple areas in scripture which point out this truth (that obedience will bring contentment).
Straying from this path comes from either ignorance or negligence for the Christian. Both are reasons to devour His word. If we don’t know what to do, we need to learn, and if we neglect to obey, it is often because we forget to prioritize what His word says.