be hoist/hoisted by/with your own petard

be hoist/hoisted by/with your own peˈtard

(British English) be caught in the trap that you were preparing for another personThis is from Shakespeare’s play Hamlet. A petard was a small bomb.
See also: hoist, own, petard