Language:
Free Online Dictionary|3Dict

敗於垂成

Source : CEDICT

to fail within reach of success (idiom)