The devils fared badly in there, and worse and worse. The hammers came down as if they were going through devils, anvil, earth, and all. It was more than even devils could bear.
"Have mercy!" they screamed. "Have mercy, soldier! Let us out again into the world, and we'll never forget you world without end. And as for this palace.... No devil shall put the nail of the toe of his foot in it. We'll tell them all. Not one shall come within a hundred miles."
The soldier let the blacksmiths give a few more blows, just for luck. Then he stopped them, and untied the mouth of the sack. The moment he opened it, the devils shot out, and fled away to hell without looking right or left in their hurry.
But the soldier was no fool, and he grabbed one old devil by the leg. And the devil hung gibbering, trying to get away. The soldier cut the devil's hairy wrist to the bone, so that the blood flowed, took a pen, dipped it in the blood, and gave it to the devil. But he never let go of his leg.
"Write," says he, "that you will be my faithful servant."
The old devil screamed and wriggled, but the soldier gripped him tight. There was nothing to be done. He wrote and signed in his own blood a promise to serve the soldier faithfully wherever and whenever there should be need. Then the soldier let him go, and he went hopping and screaming after the others, and had disappeared in a moment.
And so the devils went rushing down to hell, aching in every bone of their hairy bodies. And they called all the other unclean spirits, old and young, big and little, and told what had happened to them. And they set sentinels all round hell, and guards at every gate, and ordered them to watch well, and, whatever they did, not on any account to let in the soldier with the flour sack.
The soldier went to the Tzar and told him how he had dealt with the devils, and how henceforth no devil would set foot within a hundred miles of the palace.
"If that's so," says the Tzar, "we'll move at once, and go and live there, and you shall live with me and be honoured as my own brother." And with that there was a great to do shifting the bedding and tables and benches and all else from the old palace to the new, and the soldier set up house with the Tzar, living with him as his own brother, and wearing fine clothes with gold embroidery, and eating the same food as the Tzar, and as much of it as he liked. Money to spend he had, for he had won from the devils enough to last even a spending man a thousand years. And he had nothing to spend it on. Hens don't eat gold. No more do mice. And there the money lay in a corner till the soldier was tired of looking at it.
So the soldier thought he would marry. And he took a wife, and in a year's time God gave him a son, and he had nothing more to wish for except to see the son grow up and turn into a general.