the same bad treatment that you have given to others
a taste / dose of your own medicine
the same bad treatment that you have given to others
Let the bully have a taste of his own medicine.
Definiciones del Oxford Advanced Learner's Dictionary, 9.ª edición