" A taste (or dose) of your own medicine "
Meaning:
Mistreatment you receive in retaliation to that you gave to others.
Example:
You always made me work on Christmas Day when I was the junior. Now I’m in charge of the holiday rota and you can take a dose of your own medicine.
Where did it originate?:
Aesop.
Where is it used?:
Widely used.
Hear the idiom spoken: