"The Devil with the Three Golden Hairs" is a German fairy tale collected by the Brothers Grimm. It falls under Aarne–Thompson classification types 461, and 930. Wikipedia
Originally published: 1812
Authors: Brothers Grimm, Jacob Grimm, and Wilhelm Grimm
Aarne–Thompson grouping: ATU 930 (The Prophecy; Poor Boy shall marry Rich Girl); ATU 461 (Three Hairs of the Devil)
Published in: Kinder- und Hausmärchen, by the Brothers Grimm