Turnabout is fair play.
American
something that you say which means you will do something that someone else has done because this is fair.
You cook dinner tonight, I cooked last night. Turnabout is fair play.
Cambridge English Idioms Dictionary