Whence is an adverb and it gives the similar meaning as hence, henceforth, when, even when . It is used in a sentence like this:
She has returned whence she came.
Whence did you come?
He went to the village whence he came .
From whence is john?
It has been returned to the supermarket from whence it came.