turn the tables on


Also found in: Idioms.