Exodus 15:23-25

ISV(i) 23 When they came to Marah, they could not drink the water at Marah because it was bitter. (That is why it’s called Marah.) 24 Then the people complained against Moses: “What are we to drink?” 25 Moses cried out to the LORD, and the LORD showed him a tree, which he threw into the water, and the water became sweet.
There the LORD presented to them a statute and an ordinance, and there he tested them.