Wang Kui Betrays Guiying (王魁負桂英) is a Chinese story dating from 11th-century Song dynasty.
The story that began to circulate after his somewhat baffling death goes something like this: A young Gējì named Jiao Guiying (敫桂英 or 焦桂英) falls in love with an impoverished student named Wang Kui, and supports him with her savings as he prepares for the imperial examination.
[1][2][3] Wang Kui promises her that once he succeeds in the examination held in the capital Kaifeng, he would immediately fetch her.
After finishing first in the examination and becoming the talk of the capital, he cruelly writes Guiying a letter telling her that he now plans to marry a high-ranking minister's daughter.
Her ghost then wanders from the Underworld to Wang Kui's residence, where she haunts him and later captures and drags him to Hell.