The men who had given a bad report about the land thus died before G-d in the plague. Among the men who went to explore the land, only Joshua and Caleb remained alive.