Jiang Wei and the others retreated according to the plan and returned safely to Shu Han. Sima Yi, only after hearing that Zhuge Liang had been dead for several days, clapped his hands and laughed, saying, 'I could foresee his life, but I could not foresee his death!' Thus, Zhuge Liang's grand campaign to conquer the north ultimately failed, yet his wisdom, loyalty, and righteousness will be remembered for a hundred generations.
It is said that after Zhuge Liang emerged from Qishan, he repeatedly launched northern expeditions, seeking to seize the Central Plains and restore the Han dynasty. However, Cao Wei had strong troops and sturdy horses, and Sima Yi, cunning and calculating, persistently held his position without engaging, confronting the Shu Han army at Wuzhang Plains. Kongming knew well Sima Yi's intentions and wanted to provoke him into battle, so he sent a messenger with women's headdresses and garments to Sima Yi's camp, intending to taunt him for not daring to fight like a woman.
Sima Yi read the letter, laughed, and said, 'Kongming mocks me; I am not unaware. But the officers and soldiers are on a distant campaign, so we must not act rashly.' He then asked the messenger, 'How are Zhuge Liang's meals and sleep?' The messenger replied, 'The Chancellor rises early and retires late; he personally handles all punishments involving twenty or more strokes. The food he eats does not exceed a few sheng each day.' Sima Yi said to the generals, 'Kongming eats little and works much—how can he last long?' All the generals were convinced. Thereupon, the Wei army strengthened their defense even more.
When Kongming heard this, he sighed and said, 'My innermost thoughts are all exposed to Zhongda!' From then on, Kongming felt his body growing weaker day by day, exhausted in mind and body, often experiencing dizziness. Forcing himself to endure his illness, he toured the camp daily and deployed military affairs, yet he always felt that his end was near. Suddenly one day, he felt a shock in his heart, fell from his horse, and hit the ground. The generals rushed to help him and carried him into his tent.
Kongming said to the generals, 'My life will end tonight. I want to try to extend it; do not speak recklessly.' He then ordered his attendants to set up seven star lamps in the tent, prayed and performed rituals under the lamps, and instructed Jiang Wei and the others to guard outside, forbidding anyone from entering. If the main lamp did not go out within seven days, his lifespan could be extended by twelve years. Jiang Wei strictly obeyed his master's orders, remaining by his side day and night without leaving.