Whenever Israel comes to their senses and returns to God He will always receive them, God offers life for following Him or death for following other gods.
This generation of Israel (except for a few) fear the enemies of the land more than God who gave them the land , so God punishes them in love by numbering their days in the wilderness, he will bring their children into the land.