TEL AVIV, Israel — Israeli Prime Minister Benjamin Netanyahu said he hopes to announce the release of all hostages from Gaza “in the coming days” as Israel and Hamas prepare for indirect talks in Egypt on Monday on a new U.S. plan to end the war.

In a brief statement late Saturday, Netanyahu said he has sent a delegation to Egypt “to finalize technical details,” adding that “our goal is to contain these negotiations to a time frame of a few days.”

But Netanyahu signaled there would not be a full Israeli withdrawal from Gaza, something Hamas has long demanded. He said Israel’s military will continue to hold territories it controls in Gaza, and that Hamas will be disarmed in the plan’s second phase, diplomatically “or through a military path by us.”

The prime minister spoke after Hamas said it has accepted some elements of the U.S. plan. President Donald Trump welcomed the militant group’s statement but on Saturday warned that “Hamas must move quickly, or else all bets will be off.”

Trump later said the ceasefire would begin immediately once Hamas confirms the “initial withdrawal line” in Gaza. A map with his social media post appeared to show much of Gaza still open to Israeli forces.

Trump has also ordered Israel to stop bombing Gaza. Some in Gaza City reported a notable easing of Israeli strikes Saturday, though hospital officials said at least 22 people were killed, including women and children.

Israel’s army said leaders instructed it to prepare for the U.S. plan’s first phase. Israel has moved to a defensive-only position in Gaza and will not actively strike, said an official who was not authorized to speak to the media on the record.

Still, an Israeli strike on Gaza City’s Tuffah neighborhood killed at least 17 and injured 25 others, said Al-Ahli hospital director Fadel Naim. “The strikes are still ongoing,” Naim said. Israel’s military said it struck a Hamas member and “regrets any harm caused to uninvolved civilians.”

Shifa Hospital Director Mohamed Abu Selmiyah earlier Saturday said Israeli strikes killed five Palestinians across Gaza City.

Momentum ahead of war’s anniversary:

Trump appears determined to deliver on pledges to end the war and return all hostages ahead of Tuesday’s second anniversary of the Hamas attack that sparked it on Oct. 7, 2023.

His proposal has widespread international support. On Friday, Netanyahu’s office said Israel was committed to ending the war.

Monday’s indirect talks are meant to prepare the way for the release of hostages from Gaza and Palestinians from Israeli detention, mediator Egypt said.

A senior Egyptian official said U.S. envoy Steve Witkoff will travel to Egypt to head the U.S. negotiating team. The talks also will discuss maps showing the expected withdrawal of Israeli forces from certain areas in Gaza, said the official who spoke on the condition of anonymity.

The official also said Arab mediators are preparing for a comprehensive dialogue among Palestinians aimed at unifying their position toward Gaza’s future. The Palestinian Islamic Jihad, Gaza’s second- most powerful militant group, said it accepted Hamas’ response after rejecting the plan days earlier.

Progress, but uncertainty ahead:

Under the plan, Hamas would release the remaining 48 hostages — around 20 of them believed to be alive — within three days. It would give up power and disarm.

In return, Israel would halt its offensive and withdraw from much of Gaza, release hundreds of Palestinian prisoners and allow an influx of humanitarian aid and eventual reconstruction.

Hamas said it was willing to release the hostages and hand over power to other Palestinians, but that other aspects of the plan require further consultations among Palestinians. It didn’t address the issue of Hamas demilitarizing.

Amir Avivi, a retired Israeli general and chairman of Israel’s Defense and Security Forum, said while Israel can afford to stop firing for a few days in Gaza so the hostages can be released, it will resume its offensive if Hamas doesn’t lay down its arms.