And within Jewish teachings, the rabbinic teachings, we have Hillel, who taught that you shouldn't do to others what you don't like being done to yourself.
ובין מדרשי היהדות, מדרשי חז"ל, ישנו הלל, שגרס שמה ששנוא עליך לא תעשה לחברך.