If the artifact, creature, or enchantment is an illegal target as Divine Gambit tries to resolve, Divine Gambit won't resolve and none of its effects will happen. No player will put any cards onto the battlefield.