Zoroastorism

Zoroastrianism is a religion and philosophy based on the teachings of prophet Zoroaster founded in the early part of the 5th century BCE.

This may be the first religion to call for doing to others what you would have done to yourself.