No one really knows the origin of the hand. In the movie, someone says it's the embalmed hand of a medium who could contact spirits. That story and others function more like urban legends than facts. No one really knows where the hand came from. Joss got it from from someone else (who we see die at the beginning of the movie), but where the hand was before that is anyone's guess.