The wizard turns into a hen intending to eat the boy, but the grain changes into a polecat which then bites the hen's head off.
The wizard continues to offer ever increasing amounts of money until the boy, in fear, transforms into a grain of barley.