The VANDELS survey: a strong correlation between Ly α equivalent width and stellar metallicity at 3 ≤ z ≤ 5