After wandering in the wilderness for 40 years, Israel arrived at Kadesh, where Miriam died. There was not enough water, and the people complained bitterly. Moses struck a rock, and it gave enough water for everyone. The king of Edom refused Israel passage through his land, forcing them to travel around his country.