Hashem says: “All who anger me shall not see [the land]” (Bamidbar 14:33)
According to the Midrash (see חידושי מרן הגרי"ז who brings this medrash), this means that everyone, even the young children, would die before entering the land.
From this we can ask a seemingly obvious question: why did everyone need to be punished? The infants did not take part in the sin; what did they do wrong that they should not be allowed to go into Eretz Yisrael?