Language:
Free Online Dictionary|3Dict

自掘墳墓

Source : CEDICT

to dig one's own grave (idiom)