Israel has agreed to extend by four hours a humanitarian truce agreed with Hamas and other armed groups in Gaza, on Saturday, an Israeli government source said, declining to be named.