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**.
彼は皆に失礼だったが、今では自分がしたことの報いを受けている。