fail when success is already in sight
The Chinese idiom, Pinyin is sh ì B à ichu í ch é ng, which means that things fail when they are about to succeed. It comes from the story of Huansha, begging for surrender.
The origin of Idioms
Liang Chenyu's Huansha Ji Qijiang in Ming Dynasty: "jiuren is a mountain, and his success falls short. He expects to gather without effort, and everything is on the verge of success."
Idiom usage
We can't see things like that again.
fail when success is already in sight
retreat about thirty miles as a condition for peace - tuì bì sān shè
The inside and the outside match - biǎo lǐ xiāng fú