Water from the rock; victory over Amalek
At Rephidim God gave water from a rock Moses struck, and Joshua defeated the Amalekites while Moses held up his hands.
Behold, I will stand before you there on the rock in Horeb. You shall strike the rock, and water will come out of it, that the people may drink.” Moses did so in the sight of the elders of Israel.
Exodus 17:6 (World English Bible)
When the people quarreled with Moses and tested God, asking “Is Yahweh among us?”, God stood on the rock at Horeb and water poured out. Paul says that rock was Christ (1 Corinthians 10:4).
Then Amalek attacked. Joshua, appearing here for the first time, led the fighting. As long as Moses held up the staff of God, Israel prevailed; when his arms grew tired, Aaron and Hur held them up until sunset.
Places
AmalekMount HorebMassahRephidimSinMeribah
Dating notes
Between the manna and the arrival at Sinai (Ussher, 1491 BC).