Destroy target artifact. You gain life equal to its mana value.
If the target artifact becomes illegal before resolution, you do not gain any life.
If Divine Offering resolves, but the artifact regenerates or has indestructible, you'll still gain the life.