The effect of atomic binding on a nuclear resonance