Nuclear Resonance Oscillator Stabilized by a Magnetic Field