Approach for interpretation of nuclear magnetic resonance (NMR) spectra in magnetic materials is presented, consisting in employing the anisotropy of hyperfine interaction. The anisotropic parts of hyperfine magnetic fields on 57Fe nuclei are calculated ab initio for a model example of lithium ferrite and utilized to assign the experimental NMR spectral lines to iron sites in the crystal structure.