U.S. President Donald Trump said Israel and Hamas had agreed to terms for the release of all hostages held by the Palestinian militant group in Gaza, a major breakthrough in the U.S.- and Qatari-brokered negotiations to end their two-year war.

"I am very proud to announce that Israel and Hamas have both signed off on the first Phase of our Peace Plan,” Trump said in a social media post Wednesday. "This means that ALL of the Hostages will be released very soon, and Israel will withdraw their Troops to an agreed upon line as the first steps toward a Strong, Durable, and Everlasting Peace.”

The deal is expected to see Hamas free the roughly 20 people taken during the October 2023 attacks that are still alive, alongside the remains of more than two dozen more who died in captivity. Israel would release almost 2,000 Palestinian prisoners along with the troop movement, while aid to Gaza will be resumed.