The relation between scattering and correlation functions is the LSZ-theorem: The scattering amplitude for n particles to go to m particles in a scattering event is the given by the sum of the Feynman diagrams that go into the correlation function for n + m field insertions, leaving out the propagators for the external legs.