As part of a ceasefire deal, Hamas has agreed to release all living hostages held in Gaza, while Israel will release about 2,000 Palestinians detained in their prisons