自掘坟墓

zì jué fén mù

to dig one's own grave

自

zì

(bound form) self; oneself

掘

jué

to dig

坟

fén

grave

墓

mù

grave