Shemot 15:25

25 And he cried unto Hashem; and Hashem showed him an etz (tree) which when he had cast into the mayim, the waters were made sweet (i.e., potable, fit for drinking); at that place He made for them a chok (statute, requirement, obligation) and a mishpat (divine judgment), and there He tested them,