Observation of antiferromagnetic correlations in the Hubbard model with ultracold atoms