己所不欲,勿施於人 is basically sufficient.
He ask one thinks other as himself.
For instance, i want to yawn, but think that if someone else does it, i would be annoyed.so I avoid to do it.