We report on a novel neutron radiography technique that uses the Ramsey principle, a method similar to neutron spin echo. For the first time quantitative imaging measurements of magnetic objects and fields could be performed. The strength of the spin-dependent magnetic interaction is detected by a change in the Larmor precession frequency of the neutron spins. Hence, one obtains in addition to the normal attenuation radiography image a so-called neutron spin phase image, which provides a two-dimensional projection of the magnetic field integrated over the neutron flight path.