In the fourth aliyah G-d tells how the punishment will take place. All people that were numbered by counting shekels, which were the men between the ages of 20 and 60, are to die in the desert; while all the women, and the Leviim, and Calev and Yehoshua, and the children, will not die, and will wander in the desert for 40 years, and then go up into the promised land. The ten spies who spoke evil about Eretz Yisroel die immediately of a terrible plague.
A group of people, who are now supposed to wander and die in the desert, regret their sin and rise up early the next morning and attempt to go straight the three days journey to Israel. Moshe warns them that it won't work because G-d is not with them in what they are doing. They attempt to go anyway, but the nation of Amalak attacks and kills them immediately.