This is a genuine quote from the Buddhist scriptures. It’s from Saṃyutta Nikāya, 55.7.
“The thing that is disliked by me is also disliked by others. Since I dislike this thing, how can I inflict it on someone else?”—The Buddha
“The thing that is disliked by me is also disliked by others. Since I dislike this thing, how can I inflict it on someone else?” —The Buddha Click To Tweet