Israel will also exchange hundreds of Palestinian prisoners as the release of a wrong body by Hamas threatened to break the agreement.