What is this Pasuk coming to teach us?
Rashi: It teaches us that Hashem hurried to eliminate that generation by the end of forty years, to prevent their children from having to remain longer in the desert. 1
See Sifsei Chachamim.