In the autumn of the 12th year of Jianxing (234), Zhuge Liang died of illness in Wuzhangyuan. Before his death, he secretly arranged with Yang Yi, Fei Yi, and Jiang Wei to retreat: after Wei Yan stopped, Jiang Wei followed; if Wei Yan did not obey the order, the army would retreat on its own.
After Zhuge Liang died, Yang Yi secretly did not mourn and sent Fei Yi to test Wei Yan. Wei Yan replied: "Although the prime minister is dead, I am here. My relatives and officials can carry out the funeral. I should lead the army to attack the thieves. How can one man die to destroy the world? And who in Wei Yan should be under Yang Yi's command and be the general after the end?"
Fei Yi deceived Wei Yan and galloped away, but Wei Yan regretted it. Later, Wei Yan led his troops to return south first, burned down the plank road, and blocked Yang Yi at the entrance of the south valley. Wang Ping came to the battle and scolded: "The duke is dead, and his body is not yet cold. How dare you do it!" Wei Yan's tribe dispersed, and Wei Yan fled to Hanzhong alone with a few of his sons.
Learn more about history