idiom
a taste of your own medicine
испытывать ту же неприятность, которую вы причинили другим
Meaning
to experience the same unpleasantness you caused to others
Example
He was rude to everyone, but now he’s getting **a taste of his own medicine**.
Он был груб с каждым, а теперь он получает **по заслугам**.