Records of the Three Kingdoms
Yu Jin, courtesy name Wenze, was from Juping in Taishan. He came to Cao Cao with Bao Xin and was trusted because his discipline held. When Chang Xi rebelled and then surrendered, Yu Jin had him executed under military law even though Chang Xi was an old acquaintance he himself had talked into yielding. Cao Cao sighed over it. In the later years Yu Jin ranked with Zhang Liao, Yue Jin, Zhang He, and Xu Huang.
In 219 he commanded seven armies to relieve Fan. Days of rain drove the Han over its banks and drowned the camps. He led the men up to high ground. Guan Yu attacked by boat, and Yu Jin surrendered. Pang De refused and was killed. Yu Jin was sent to Jiangling. Soon Jiangling fell to Sun Quan, and Yu Jin was in Wu.
In 221 Sun Quan offered submission and returned Yu Jin to Wei. Cao Pi did not kill him at once. He sent him to Ye to pay respects at Cao Cao’s tomb. A mural had been prepared: Guan Yu victorious, Pang De enraged, Yu Jin kneeling. Yu Jin saw it, sickened from shame, and died. Chen Shou says he had been the most steadfast of them, and that his last years failed that record.
Romance of the Three Kingdoms
In the novel’s flood of the seven armies Yu Jin is captured and yields as soon as he faces Guan Yu. Pang De will not stop cursing. The pair is the moral frame of the chapter.
After Wu sends him back, Cao Pi has him look at the painting of the surrender, and he dies of shame. The novel keeps that ending for a general who had been strict and at the last knelt.
Reference: Wikipedia · Yu Jin