Gesta Danorum
During the centuries of popularity the story changed. This is the most comprehensive version from "Gesta Danorum" (book 7).