“I know you did this with a clear conscience, and so I have kept you from sinning against me.” Genesis 20:6
There are many times when God prevents us from doing the wrong thing. Creating circumstances, changing our minds, altering our destination. He often holds us back from sin in ways we can’t detect, ways in which we have no knowledge.
God works just as often in ways we cannot see as He does in ways we can.