Arab–Byzantine prisoner exchanges
During the course of the Arab–Byzantine wars, exchanges of prisoners of war became a regular feature of the relations between the Byzantine Empire and the Abbasid Caliphate. The exchanges began in the late 8th century and continued until the late 10th century.
Source: Wikipedia — Arab–Byzantine prisoner exchanges (CC BY-SA 4.0)