Exact dimer phase with anisotropic interaction for one dimensional magnets