Israel and Hamas agreed on this before handing over the hostages. The release of dozens of hostages and Palestinian prisoners, a ceasefire and aid for Gaza: for the first time in the war, there is a deal between Israel and Hamas. The agreements at a glance.. Enlarge image Smoke after an Israeli airstrike over the city of Khan Yunis in the Gaza Strip. The ceasefire is initially scheduled to last at least four days and will allow for the exchange of hostages for Palestinian prisoners detained in Israel.