One should not behave towards others in a way which is disagreeable to oneself. This is the essence of morality. All other activities are due to selfish desire.

Hinduism. Mahabharata, Anusasana Parva, 113.8