Hamas was preparing to release more than a dozen hostages Saturday for several dozen Palestinian prisoners held by Israel, part of an exchange on the second day of a ceasefire that has allowed critical humanitarian aid into the Gaza Strip and given civilians their first respite after seven weeks of war.