God had communicated to Moses that they were not to leave Egypt as paupers. They would leave as a wealthy nation. Moses told the Israelites to ask the Egyptians for their riches. Wanting to avoid further calamity, the Egyptian people unloaded their wealth into the bags of the Israelites. The progression of the plagues had led them to a place where they feared for their own lives. The possibility that they could all be wiped out was heavy on their thoughts. So consequently, they gave the Israelites everything they asked.