A command based on words of Jesus in the Sermon on the Mount: “All things whatsoever ye would that men should do to you, do ye even so to them.” The Mosaic law contains a parallel commandment: “Whatever is hurtful to you, do not do to any other person.”
Note: “Do unto others &ellipsis;” is a central ethical teaching of Jesus, often referred to as the Golden Rule.
Treat other people with the concern and kindness you would like them to show toward you. This saying has come to be called the Golden Rule.
do unto others as you would have them do unto you
Behave toward others as you would like to have them behave toward you, as in Of course I'll help him out; it's a case of do unto others, and I may be in the same boat one day. This so-called golden rule is stated in just about every ancient writing about behavioral precepts (including the New Testament, Talmud, Koran, and the Analects of Confucius). Among the earliest appearances in English is Earl Rivers' translation of a saying of Socrates (Dictes and Sayenges of the Philosophirs, 1477): "Do to other as thou wouldst they should do to thee, and do to none other but as thou wouldst be done to." It is so well known that it is often shortened.