Read this passage and open each verse for the full verse feed and commentary tools.
23When they came to Marah, they couldn`t drink from the waters of Marah, for they were bitter. Therefore the name of it was called Marah. 24The people murmured against Moses, saying, "What shall we drink?" 25Then he cried to Yahweh. Yahweh showed him a tree, and he threw it into the waters, and the waters were made sweet. There he made a statute and an ordinance for them, and there he tested them;
Exodus 15:23-25 (WEB)