The Israelites grumbled against Moses for lack of water after escaping Egypt. God provided water from a bitter spring and later manna and quail in the wilderness. However, the people continued complaining, testing God. After arriving at Rephidim without water, Moses struck a rock at Horeb on God's command, providing water. The Amalekites attacked Israel and were defeated after Moses held up his staff. Jethro, Moses' father-in-law, advised selecting other leaders to help judge smaller cases and share the workload with Moses.