We present a comprehensive observational study of the gas-phase metallicity of star-forming galaxies from z ∼ 0 → 3. We combine our new sample of gravitationally lensed galaxies with existing lensed and non-lensed samples to conduct a large investiga