Israel is due to release hundreds of Palestinian prisoners in return as part of an exchange.