When Old Man Gu heard that Qiao Sheng had met Liancheng through poetry, he was furious and forbade their contact. Because of this, Liancheng fell ill with a heart ailment, growing worse day by day. All the doctors were helpless. A Taoist said: "The illness comes from a knot in the heart; the flesh from another person's heart must be used as a medicine ingredient." Old Man Gu was full of grief.
When Qiao Sheng heard this, he wept bitterly. Qiao Sheng said: "My heart's flesh, why should I begrudge it?" He then cut open his own chest, blood flowing over his body, and gouged out the flesh of his heart to give to her.
Liancheng took the medicine, and her illness was cured at once. Old Man Gu, grateful for his kindness, intended to give his daughter in marriage. Scholar Wang, jealous, bribed the jailer heavily, fabricated charges against Qiao Sheng, and Qiao Sheng was thrown into prison. When Liancheng heard this, she wept loudly, saying: "For my sake, he is trapped in prison; why should I live!"
Liancheng refused to eat, weeping day and night. Old Man Gu urged her, saying: "Life and death are fated; why be like this!" Liancheng said: "Qiao Sheng has treated me with deep love; I would rather die than betray him!" So she fasted for seven days and died.
Qiao Sheng, in prison, upon hearing the news of Liancheng's death, was overwhelmed with grief and anger, also refused to eat, and died after a few days.
Their souls entered the underworld, meeting in the dark realm, as if they were still alive. When Qiao Sheng saw Liancheng, he was overjoyed, holding her hand and saying: "I saved you with my heart's flesh, and you died for me; this love and righteousness cannot be changed in life or death!" Liancheng also wept, saying: "Your kindness and virtue are engraved in my bones and heart; I swear to follow you unto death!" The two then became a married couple in the underworld.
The King of Hell, seeing their situation, sighed at their true love, and judged that Liancheng should return to the living world. Qiao Sheng, unwilling to part, begged, saying: "Your servant and Liancheng share deep love; I wish to return to life with her and continue our former bond!" The King of Hell said: "Your lifespan is already exhausted; this proposal is hard to grant." Qiao Sheng begged again and again, weeping with tears streaming. The King of Hell, seeing his earnest feelings, then permitted it. But Qiao Sheng's body had already decayed and could not be used again.