Sorry; There is just as much water on Mars as on the Moon.
Actually there is a lot more on Mars. Maybe you were implying there was none on the Moon?
For the moon the estimated total mass of ice is 6 trillion kg (6.6 billion tons).
Ice on the moon