zì​jué​fén​mù

to dig one's own grave