The existence of the anomalous magnetic moment of the electron has been detected experimentally by magnetic resonance method. This allows the determination of hyperfine splitting of electron shell energy levels in atoms of protium and deuterium using the measured resonance frequency for several transitions.