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
Ksenia Karelina, detained for donating $51 to a pro-Ukraine charity, returns to the US after a high-stakes exchange for Arthur Petrov.