legendand popular opinionhas it that he wrote the tao te ching ( classic of the way and its virtue ) at the behest of the gates keeper who would not let him out of the city unless he did ( lao tzu , apparently , had had it with men and their ways and sought some peace at some far remove in nature ) .