"Hurt not others in ways that you yourself would find hurtful. One should seek for others the happiness one desires for one's self"
Tripitaka Udana-Varga 5:18 (~500 BC)
"In five ways should a clansman minister to his friends and familiars, ...by treating them as he treats himself."
Sigalovada Sutta 31
"The Ariyan disciple thus reflects, Here am I, fond of my life, not wanting to die, fond of pleasure and averse from pain. Suppose someone should rob me of my life... it would not be a thing pleasing and delightful to me. If I, in my turn, should rob of his life one fond of his life, not wanting to die, one fond of pleasure and averse from pain, it would not be a thing pleasing or delightful to him. For a state that is not pleasant or delightful to me must also be to him also; and a state that is not pleasing or delightful to me, how could I inflict that upon another? As a result of such reflection he himself abstains from taking the life of creatures and he encourages others so to abstain, and speaks in praise of so abstaining."