Having been outwitted twice, he retreated into the earth in a fury, and the peasant took the treasure.
Having been bested twice, he retreated underground in a rage, and the peasant seized the treasure.