The law of conservation of mass states that
In any chemical reaction mass is neither created nor destroyed rather it remains conserved
Look the chemical reaction below
[tex]\\ \sf\longmapsto 2H_2+O_2=2H_2O[/tex]
Count the mass on both sides and simplify