This didn’t involve any action and it was only thinking, therefore it is not a sin but it is not recommended to do.

Thinking or fantasising about sexual thoughts which will get you aroused, if someone does this will the sin of sex before marriage be written for them?

Manners |