A second group of 39 Palestinians held in Israeli prisons was released as part of a deal between the Israeli government and the Hamas group.
Hundreds of people greeted the International Committee of the Red Cross bus carrying Palestinians as it arrived in al-Bireh in the occupied West Bank.
The crowd chanted “God is great” as the bus arrived, and several young men stood on the roof of the vehicle. Many demonstrators waved Hamas flags and chanted pro-Hamas slogans.
Many Palestinians view prisoners held by Israel, including those involved in the attacks, as heroes resisting the occupation, and have celebrated their release.
The arrival of the Palestinian prisoners, six women and 33 men, sparked tears and joy as they were welcomed by their families in occupied East Jerusalem and the West Bank.
Their release comes after the Hamas group freed 13 Israeli prisoners.
Egypt, the United States and Qatar negotiated a four-day ceasefire between Israel and Hamas and the exchange of 50 civilian prisoners for Palestinian prisoners.