Harry Emerson Fosdick said this quote

All altruism springs from putting yourself in the other person's place.