Israeli Prime Minister Benjamin Netanyahu has asked Israel's president for a pardon during his ongoing corruption trial.