As far as I know, there is no single complete source of the myth, but rather many fragments in many places, from many times and influences. A good general reference for material like that is Manly P. Hall. He was a truly remarkable scholar.
"Do not worry; cultivate the habit of being happy." - Samael Aun Weor