rod for one's back

Noun

 * 1)  The means of one's own punishment or downfall.

Usage notes

 * Often preceded by the verb make or create.