This happened last time I played: I hit my approach shot into a water hazard in front of the green. It's just a small creek which runs in front of the green and when I got up there my ball was not in the water but inside the yellow stakes, so in the hazard.
I decide I can chop down on it with a wedge and get it on to the green. Now I know I'm not allowed to ground the club in a hazard, so i didn't but as I made my backswing the clubhead made contact with the ground because there was a bit of a ridge behind the ball. I stopped in the middle of my backswing, counted it as a penalty stroke, and then swung again and hit the shot the way I intended.
So I counted 1 penalty stroke and another for my actual shot, was this correct?
Don't know if I'm explaining this well enough, so here's an mspaint:
The red circle is where I made contact with the ground