The father was much astonished when he saw a stranger riding his horse , but the Hazel-nut child climbed down quickly and told him all that had happened , and his father had the robber arrested at once and put into prison .