Stretch as far as you can on the opposite side of the pain.
Ignore the pain whilst doing this.
Then stretch it on the side with the pain, then start moving your head in slow circles.
If the pain is on both sides, start left, then right, then the circles.
I do this and I feel fine the next day.
Also, make sure your head is properly positioned when you sleep, not too high, and not too low.