Understanding Adultery in the Heart

When Jesus instructed the Jews that if they looked upon a woman with the intent to lust after her they had already committed adultery in their heart; however, He did not say they sinned because adultery, which is an action, is not the same as trespass, which happens in the heart.