The Lord told Moses to consecrate to him every firstborn of the Israelites, of people and animals, because they belonged to him. Moses told the people to remember the day they came out of Egypt with a mighty hand, and not to eat leavened bread. When the Lord brought them to the promised land, they were to keep this rite every year in this month: for seven days they would eat unleavened bread, and on the seventh there would be a feast to the Lord. They were to explain to their children that they did this because of what the Lord did for them in bringing them out of Egypt.
When the Lord brought them to the land of the Canaanites, they were to set apart to him every first offspring. The firstborn males of clean animals would be the Lord's. The firstborn of a donkey would be redeemed with a lamb, and if not redeemed its neck would be broken. Every firstborn son would be redeemed. When a son asked why, the father would explain that the Lord brought them out of Egypt with a mighty hand, and that when Pharaoh hardened his heart and would not let them go, the Lord killed every firstborn in Egypt.
When Pharaoh let the people go, God did not lead them by the road through the land of the Philistines, though it was shorter, for he thought that if they faced war they might change their minds and return to Egypt. He led them around by the wilderness toward the Red Sea, and the Israelites went up equipped for battle. Moses took with him the bones of Joseph, who had made the sons of Israel swear that they would carry them out of Egypt. They moved on from Succoth and camped at Etham, on the edge of the wilderness.
The Lord went before them by day in a pillar of cloud to lead them, and by night in a pillar of fire to give them light, so that they could travel by day and by night. The pillar of cloud by day and the pillar of fire by night never left its place before the people.