Tolkien stole the Idea from Richard Wagners, Ring De Niebulungen.
Wagner cribbed the plot from Germanic and Scandinavian legend. There aren’t that many plot similarities with Tolkien’s novels - just some general atmosphere.
A documentary I watched recently said that Tolkien was particularly influenced by the Finnish language and their national epic poem, the Kalevala.
http://tolkiengateway.net/wiki/Poetic_Edda