Add punctuation: But it happened that a shepherd tending his flock saw the flower and as it was so beautiful he gathered it took it home with him and put it in his chest
But it happened that a shepherd, tending his flock, saw the flower, and as it was so beautiful, he gathered it, took it home with him, and put it in his chest.