Hamas freed 17 hostages held in Gaza, including a four-year-old American girl, while Israel released 39 Palestinian prisoners on Sunday, the third day of their truce.
The International Committee of the Red Cross said it had successfully transferred the hostages from Gaza. Hamas said it had handed over 13 Israelis, three Thais and one with Russian citizenship.
The release of the hostages was mirrored by the freeing of 39 Palestinians, all of whom are teenagers, according to the Palestinian news agency WAFA.
Hamas said it wanted to extend the truce if serious efforts were made to increase the number of Palestinian detainees released by Israel.
US President Joe Biden said he hoped the pause in fighting could go on as long as hostages are getting released. He hoped more Americans would be released by Hamas although he did not have firm news.
He said the four-year-old hostage, Abigail Edan, had witnessed her parents being killed by Hamas fighters during their October 7 raid into Israel and had been held since then.
"What she endured is unthinkable," Biden said at a news conference in the US.
Abigail was on her way to the hospital for checks, Israel's Channel 13 said. Her grandfather, Carmel Edan, told Reuters he "simply could not believe" she had been returned, thanking Biden "for all the help he's offered us".
Palestinians gave the freed prisoners a jubilant reception in Ramallah, according to WAFA.


Saudi Arabia shuts key oil pipeline after drone attack
BRICS members agree joint declaration at New Delhi summit
Death toll in Philippine ferry fire rises to 76 as rescuers recover more remains
Russian attacks kill six, injure dozens in Ukraine, Moscow says it hits ships, plants
Explosion hits another weapons site in Bulgaria