"do unto others as you would have done unto you" is a pretty damn near universal law of morality
It's insidiously evil. Many of the root versions (and in particular, the early Zoroastrian version, which I think might predate others and was influential in religions that followed) were to not do to others that which is abhorrent to you, but this corruption of it turns it into something else entirely.