Moses cried out to Yahweh, and Yahweh showed him a piece of wood; he threw it into the water, and the water became sweet. There Yahweh made for them a statute and an ordinance, and there he tested them.
In context
23When they came to Marah, they could not drink the water there, because it was bitter — that is why the place was named Marah. 24So the people grumbled against Moses. “What are we to drink?” they said. 25Moses cried out to Yahweh, and Yahweh showed him a piece of wood; he threw it into the water, and the water became sweet. There Yahweh made for them a statute and an ordinance, and there he tested them. 26He said, “If you will truly listen to the voice of Yahweh your God, and do what is right in his eyes, and pay attention to his commandments, and keep all his statutes, I will not bring on you any of the diseases I brought on the Egyptians — for I am Yahweh, who heals you.” 27Then they came to Elim, where there were twelve springs of water and seventy palm trees, and they camped there by the water.