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.


Russian strikes kill 20, exposing Ukraine's air-defence shortage
Clashes escalate at Sri Lanka prison to leave 25 dead, many more injured
Six killed in India's Mumbai as rains wreak havoc, disrupt travel
Wildfire in southern France forces 10,000 people from their homes
Folarin Balogun to play for US after FIFA suspends red-card ban
Arab League condemns Israeli demolition of entire neighborhood in Lebanon
Eight killed in landslides at Rohingya refugee camps in Bangladesh
Venezuela quake death toll nears 3,000 as rescue effort winds down
