A prisoner exchange or prisoner swap is a deal between opposing sides in a conflict to release prisoners: prisoners of war, spies, hostages, etc. Sometimes, dead bodies are involved in an exchange. From Wikipedia
Israel and Hamas agree to release three hostages, including two German-Israelis, in exchange for over 100 Palestinian prisoners.