The Divine commandments have two dimensions: (a) their influence on the person who accepts the "yoke of the Kingship of Heaven," which fixes and corrects his character and thoughts, etc., and (b) their correction of the world, so that the world will become more correct, just and refined, according to G-d's will. The second dimension considers the negative influence on both the person and the world when a wrong is done, even unknowingly. Based on this principle, Or HaHayim on Gen. 20:6 explains the rebuke that G-d gave to Abimeleh in his dream, while he was being miraculously prevented from unknowingly committing adultery with Abraham's wife, Sarah: "I have saved you from sinning to Me" - i.e., "Even though you, Abimeleh, claimed to Me your innocence in this matter, since you did not know that Sarah was married, you should know that I saved you from doing the sinful act even unintentionally, because it would still be a sin against Me" (the Divine Code by Rabbi Moshe Weiner, Ask Noah International, 2018, p 68).