God told him to strike a rock (Exo 17:6)