In the last years of the Sui Dynasty, the Sui Dynasty was already in danger, and the frequent peasant uprisings made the Sui Dynasty on the verge of extinction at any time. Among the many rebel armies, the Wagang Army, led by Zhai Rang Li Mi, was considered to be the most effective rebel army, frequently attacking the Sui Dynasty and disintegrating the military and economy of the Sui Dynasty. It was only when the Wagang army was getting stronger and stronger that they collapsed and disbanded due to their own internal contradictions.

Although it was eventually disbanded, the Sui Dynasty was crumbling because of the heavy damage inflicted on the Sui Dynasty by the Wagang Army during the 7-year battle. Later generations said that Li Yuan and Li Shimin should thank the Wagang army, if they had not contained most of the Sui Dynasty's remaining strength, how could the Tang army take advantage of the void to quickly disintegrate the Sui Dynasty's forces.
When the Wagang Army was disbanded, the leaders of the Wagang Army, Li Mi and Xu Shixun, and others surrendered to Li Tang and served Li Tang.
It is worth saying that although Xu Shiji has already surrendered to Li Tang, he has a good friend, but did not surrender to Li Tang with him, but has been following Wang Shichong after Li Mi's defeat at Wang Shichong. This person is Shan Xiongxin, and the reason why this person is different from his friend Xu Shixun has been explained in the Sui and Tang Dynasties. Willing Li Yuan to mistakenly kill Shan Xiongxin's brother when he was being hunted down in Taiyuan, Shan Xiongxin vowed not to surrender to Li Tang.
Although there are two camps, Shan Xiongxin's military ability is quite recognized, and the data records that Shan Xiongxin is majestic in appearance and brave in battle, and brave and brave is a rare general. However, this person ended up with a sad ending, and after Wang Shichong was defeated by Li Shimin, he was beheaded by Li Shimin. And between him and Li Shimin, there is still a grudge.
In 620, Li Shimin led an army to attack Luoyang, and Shan Xiongxin sent troops to meet Li Shimin, if xu Shixun had not stopped it in time, Li Shimin would have died when attacking Luoyang.
However, this also directly caused the tragic ending of Shan Xiongxin's future. In 621, Li Shimin defeated Wang Shichong and ordered shan Xiongxin and others to be killed. Although Xu Shixun interceded for Shan Xiongxin, Li Shimin was not moved. Xu Shixun said that this person could not be killed, otherwise the Tang Dynasty would suffer endless troubles. In the end, Zhongyi was in a dilemma, and Xu Shixun had to promise to take care of his family after Shan Xiongxin's death.
Why did Li Shimin insist on killing Shan Xiongxin despite Xu Shixun's persuasion? Besides, isn't Li Shimin thirsty for talents? Why did a man who appointed meritocracy kill Shan Xiongxin? In fact, this is related to the above-mentioned Li Shimin who almost died at the hands of Shan Xiongxin. But there are also voices opposed, after all, Li Shimin is the emperor of the generation who created the zhenguan world, if there is only this bit of belly, how to sit in the world and convince the court ministers?
Shan Xiongxin's death may also be related to the fact that this person had betrayed Li Mi and surrendered to Wang Shichong. For Li Shimin, he could tolerate that he had almost died at the hands of Shan Xiongxin, but in order to avoid future troubles, Li Shimin eventually beheaded him.
As for Xu Shixun's statement that there are endless troubles in the future, more than 200 years later, Shan Xiongxin's descendants joined the Huangchao rebel army, resulting in a great decline in the strength of the Tang Dynasty.