Did the Spirit lead you to do that?
Twice the Bible uses the phrase "led by the Spirit." Cripplegate points out a startling fact about those instances: they both refer to the mortification of sin (killing sin in our lives). With this comes a warning: don't use this phrase as a way to validate and deputize your gut-feeling... Scripture is our sole authority.