In nearly every religion I am aware of, there is a variation of the golden rule. And even for the non-religious, it is a tenet of people who believe in humanistic principles. ↗
Let everyone regulate his conduct... by the golden rule of doing to others as in similar circumstances we would have them do to us, and the path of duty will be clear before him. ↗