Overview
Tyrfing, Tirfing or Tyrving (the name is of uncertain origin, possibly connected to the Terwingi) was a magic sword in Norse mythology, which features in the Tyrfing Cycle, which includes a poem from the Poetic Edda called Hervararkviða, and the Hervarar saga. The name is also used in the saga to denote the Goths. The form Tervingi was actually recorded by Roman sources in the 4th century.
Svafrlami was the king of Gardariki, and Odin's grandson. He managed to trap the dwarfs Dvalinn and Durinn when they had left the rock where they dwelt. Then he forced them to forge a sword with a golden hilt that would never miss a stroke, would never rust and would cut through stone and iron as easily as through clothes.
The dwarfs made the sword, and it shone and gleamed like fire. However, in revenge they cursed it so that it would kill a man every time it was drawn and that it would be the cause of three great evils. They finally cursed it so that it would also kill Svafrlami himself.
When Svafrlami heard the curses he tried to slay Dvalinn, but the dwarf disappeared into the rock and the sword was driven deep into it, though missing its intended victim.
From Wikipedia (CC BY-SA 4.0).