It was transmitted orally in europe originally, before the brother's grimm published it in 1812 in the first volume of their folk tale collection.
Didn't find the answer you were looking for?