37 On the last day of the feast, the great day, Jesus stood up and cried out, “If anyone thirsts, let him come to me and drink. 38 Whoever believes in me, as the Scripture has said, ‘Out of his heart will flow rivers of living water.’” 39 Now this he said about the Spirit, whom those who believed in him were to receive, for as yet the Spirit had not been given, because Jesus was not yet glorified.
17 All the congregation of the people of Israel moved on from the wilderness of Sin by stages, according to the commandment of the LORD, and camped at Rephidim, but there was no water for the people to drink. 2 Therefore the people quarreled with Moses and said, “Give us water to drink.” And Moses said to them, “Why do you quarrel with me? Why do you test the LORD?” 3 But the people thirsted there for water, and the people grumbled against Moses and said, “Why did you bring us up out of Egypt, to kill us and our children and our livestock with thirst?” 4 So Moses cried to the LORD, “What shall I do with this people? They are almost ready to stone me.” 5 And the LORD said to Moses, “Pass on before the people, taking with you some of the elders of Israel, and take in your hand the staff with which you struck the Nile, and go. 6 Behold, I will stand before you there on the rock at Horeb, and you shall strike the rock, and water shall come out of it, and the people will drink.” And Moses did so, in the sight of the elders of Israel. 7 And he called the name of the place Massah and Meribah, because of the quarreling of the people of Israel, and because they tested the LORD by saying, “Is the LORD among us or not?”
8 Then Amalek came and fought with Israel at Rephidim. 9 So Moses said to Joshua, “Choose for us men, and go out and fight with Amalek. Tomorrow I will stand on the top of the hill with the staff of God in my hand.”