The deadline for Hamas to release all remaining hostages looms as hundreds of thousands of Palestinians displaced by the war make the trek back north in Gaza.