21 The Lord showed them the way; during the day he went ahead of them in a pillar of cloud, and during the night he was in a pillar of fire to give them light. In this way they could travel during the day or night.