Brahmanism:
This is the sum of duty: Do naught unto others which would cause you pain if done to you.
Mahabharata 5:1517
Buddhism:
Hurt not others in ways that you yourself would find hurtful.
Udana Varga 5:18
Christianity:
All things whatsoever ye would that men should do to you, do ye even so to them.
Matthew 7:12
Confucianism:
Surely it is the maxim of loving-kindness: Do not unto others that you would not have them do unto you.
Analects 15:23
Islam:
No one of you is a believer until he desires for his brother what which he desires for himself.
Sunnah
Judaism:
What is hateful to you, do not to your fellowmen. That is the entire Law; all the rest is commentary.
Talmud, Shabbat 31:a
Taoism:
Regard your neighbor's gain as your own gain, and your neighbor's loss as your own loss.
T'ai Shag Kan Ying P'ien
Zoroastrianism:
That nature alone is good which refrains from doing unto another whatsoever is not good for itself.
Dadistan-i-dinik 94:5