"Don't do to others what you don't want others to do to you" means: Don't do to others what you don't want others to do to you.
From: The Analects of Wei Linggong by Confucius in the Spring and Autumn Period.
Excerpt from the original text: Zi Gong asked, "Who has a word that can go all his life?" Confucius said, "I forgive you! Don't do to others what you don't want. "
Interpretation: Zi Gong asked Confucius: "Is there a sentence that can be pursued for life?" Confucius replied: "This is forgiveness! Don't impose what you don't want on others. "
Do to others what you don't want them to do to you:
During the Spring and Autumn Period, there was a prison official named Li Li in the State of Jin. When he tried a case, he listened to the one-sided words of his subordinates, which led to a person's wrongful death. After the truth came out, Li Li was going to make amends by dying. Jin Wengong said: There are high and low officials and heavy punishments. Besides, this case is mainly the fault of the clerk below, not yours.
Li Li said: "I generally don't tell the following people that we came to be this official together, and I don't share the salary with the following people." Now I have made a mistake and put the responsibility on the following staff. What should I do? "He refused to listen to Jin Wengong's persuasion and died.