Hamas handed over the bodies of four hostages in exchange for Israel's release of hundreds of Palestinian prisoners Thursday, days before the first phase of their ceasefire will end.