After the fierce battle at Red Cliffs, Cao Cao's army was utterly defeated, his camp set ablaze, and his troops scattered like falling leaves; he had no choice but to retreat. Zhuge Liang had long calculated the route Cao Cao would take and deployed ambushes at all key points. First, Zhao Yun ambushed Cao's army at Wulin Pass, striking terror into their hearts. Then, Zhang Fei charged out amidst the flames at Hulu Pass, killing countless Cao soldiers. Cao Cao fled in dire straits, suffering heavy losses and terrified out of his wits.
Now, after deploying all the generals for ambushes, Zhuge Liang alone did not assign Guan Yu. Guan Yu was displeased and asked, 'Though I am not a commander, I am still among the ranks—why am I the only one not sent?' Zhuge Liang smiled and said, 'I fear you might release Cao Cao out of righteousness.' Guan Yu proudly made a military pledge, 'If Cao Cao does not pass through this place, I am willing to face military punishment.' Zhuge Liang then said, 'Considering the great kindness Cao Cao once showed you, if you meet him, how will you handle it?' Guan Yu replied, 'At that time, official duty takes precedence; righteousness cannot override duty.' Zhuge Liang then sent Guan Yu with five hundred sword-wielding men to ambush at Huarong Trail. Guan Yu bowed and departed.
Now, after the two ambushes at Wulin and Hulu Pass, Cao Cao had fewer than a hundred men left. As they reached Huarong Trail, the road was muddy and impassable, and both men and horses were exhausted. Seeing the perilous terrain, Cao Cao laughed uproariously and said, 'Though Zhou Yu and Zhuge Liang are wise, they both have shortcomings. If an ambush were laid here, would we not be doomed!' Before he finished speaking, a cannon boomed, and Guan Yu blocked the way. At the sight of him, Cao Cao was terrified and his soul fled. He hurried forward, bowed, and said, 'General, are you well since we parted? In the old days, the general treated me generously; today, I hope the general will remember past kindness and spare my life.' Guan Yu hesitated inwardly, recalling how Cao Cao had once bestowed upon him a robe and a horse, and let him pass through five passes—moved by righteousness, he could not bear to harm him. So he ordered his troops to withdraw and let Cao Cao and his men go.
After letting Cao Cao go, Guan Yu returned to camp to confess his crime. Zhuge Liang said, 'I knew well the general's deep sense of righteousness, so I purposely let the general repay Cao Cao's old kindness. However, military law cannot be set aside!' Liu Bei urgently pleaded for Guan Yu, and Zhuge Liang spared him the death penalty, but recorded that his merits offset his faults and ordered him to atone by performing future meritorious deeds.