After studying with Confucius, Zigong became Commandant of Xinyang, and Confucius gave him this advice: "In dealing with your subordinates, there is nothing like impartiality; and when wealth comes in your way, there is nothing like moderation. Hold fast these two things, and do not swerve from them. To conceal men's excellence is to obscure the worthy; and to proclaim people's wickedness is the part of a mean man. To speak evil of those whom you have not sought the opportunity to instruct is not the way of friendship and harmony." After leaving Confucius, Zigong served in high offices in both in Lu and Wei, and finally died in Qi. Following Confucius's death, many of the disciples built huts near their Master's grave, and mourned for him three years, but Zigong remained there, mourning alone for three years more. His place in the Temple of Confucius is third among "The Wise Ones", to the east of the Assessors. The fifth chapter of the "Analects" was traditionally attributed to his disciples.