From the Analects of Confucius Yan Yuan: "don't do to others what you don't want. There is no resentment in the country and at home." it means: don't apply what you don't want to accept to others.
The Analects of Confucius is a collection of quotations from Confucius and his disciples. It was compiled by Confucius' disciples and their retransmission disciples and was written in the early Warring States period.
During the spring and Autumn period, Zhong Gong, a student of Confucius, asked Confucius how to deal with the world in line with benevolence? Confucius immediately replied, "a person should take people seriously. Don't impose things he doesn't like on others. Don't complain whether in the government or in the opposition." Zhong Gong thanked: "although I'm slow, I must remember what my husband said."
Zhong Gong asked Ren. Confucius said, "if you go out, you will see a great guest, and make the people like accepting a great sacrifice; don't do to others what you don't want; there is no resentment in the country, and there is no resentment at home." Zhong Gong said, "although Yong is not sensitive, please talk like this." - "Analects of Confucius · Yan Yuan"
Confucius Zhongni is a famous thinker, educator and founder of Confucianism in ancient China. He is respected by later generations as the sage of Confucius, the most holy and the most holy teacher, and the first of the "top ten cultural celebrities in the world".
He created the atmosphere of private lectures. Confucius once learned from Lao Tzu, led some disciples to travel around the world for 14 years, and revised the six classics of poetry, book, ceremony, music, Yi Zhuan and spring and autumn in his later years. After Confucius died, later generations recorded the words, deeds, quotations and thoughts of Confucius and his disciples and compiled them into the Confucian classic The Analects of Confucius.