Learn how to remove a device from a previous owner's Apple ID so that you can activate and use it.
If your iDevice has already been erased
If the device has already been erased, but is still linked to the previous owner’s account, you'll be prompted for the previous owner’s Apple ID and password during the device setup and activation process (shown below).