The following morning he went down to his master and asked for some money. "Yesterday I worked hard," said Niels, "and to-day I will enjoy myself."

He went out of the city, and did not return to the workshop till late in the evening. The next day and the next he did the same, and so through the rest of the week.

His master was very angry at this, and threatened to turn him away unless he finished his work at the appointed time. But Niels told him to rest easy, and engaged that his lock should be the best.

When the day arrived, Niels brought his work forth, and carried it up to the palace. His lock was so ingenious and so delicately made, that it far excelled all the others. Niels's master was acknowledged as the most skillful, and he received the promised office and reward.

The smith was delighted, but he took good care not to confess to anyone who it was that had made the curious lock. He received one job after another from the King, and let Niels do them all.

In the meantime the report spread from place to place of the wonderful lock the King had got for his treasury. Travelers came from a distance to see it, and a foreign King came among them. When he had examined the work a long time he said that the man who had made such a lock deserved to be honored and respected.

"But however good a smith he may be," added the foreign King, "I have his master at home."

He continued boasting in this manner, till at length the two kings made a wager as to which smith could execute the most skillful piece of workmanship. The smiths were sent for, and the two kings determined that each smith should make a knife.

The smith related to Niels what had passed, and desired him to try whether he could make as good a knife as the lock he had made. Niels promised to do so, although his last work had not brought him much. The smith was in truth a mean man, and treated Niels so niggardly that sometimes he had not enough to eat and drink.

One day, as he was out buying steel to make the knife, he met a man from his own village, and, in the course of conversation, Niels learned that his father was in great want and misery. Then he asked his master for some money, but this was the answer: "You shall not have a shilling until you have made the knife."