This tale belongs to the Norse Germanic Mythology.
Alvíssmál or the Lay of Alvíss is a poem of the Poetic Edda. It tells the tale of Alvíss, or All-Wise, who claimed to Thrudr, Thor's daughter, as his wife. Thor opposed, but there was a promise by which it was made in the absence of Thor. Then the thunder god told him to do a series of questions, and if he answer to all, he could marry with his daughter. Thor asked many things, and Alvíss knew all the answers, but eventually dawned, and the dwarf Alvíss turned to stone, as the dwarves in Norse mythology turn into stone with sunlight.