Language:
Free Online Dictionary|3Dict

自掘坟墓

Source : CEDICT

to dig one's own grave (idiom)