being caught in one's own trap; hoist by one's own petard
A yojijukugo describing a situation where one's own scheme or words backfire and cause trouble for oneself. Often used in formal or literary contexts.
His scheme ended up being a case of hoist by his own petard.
Be careful with your words so you don't get caught in your own trap.