I know there are a few officials here on the forum and this question is for you

Taking a practice swing on the tee box and accidentally hit my ball off the tee.
No penalty as i had no intention of hitting it.
So do i re-tee it up or play it where the ball landed on the ground?
I was told to hit it where it landed by my buddy
Not 100% sure on this and have read the rules but its not clear to me
Thanks lads.