"In your association with others, put yourself in their place. Enter into their feelings, their difficulties, their disappointments, their joys, and their sorrows. Identify yourself with them, and then do to them as, were you to exchange places with them, you would wish them to deal with you"
In my own life, I've come to learn that you need go an extra step beyond this. I say that because I've found that in many areas of life, what I would want someone to do to me, is very, very different from what others would like me to do to them.
One small example of this is that if I dropped my wallet, I would like to praise the person who returns it to me. But the society I live in doesn't want any recognition for that, so I too have learned to be anonymous when returning dropped things.