Since the idea is so simple, “Do unto others as you would have them do unto you”, most religions and philosophies have some variation of the Golden Rule.
However, the earliest known rendition came from Confucius (551-479 B.C.):
“What you do not wish for yourself, do not do to others.”
In other words, don’t screw with people. Karma is a bitch.