Lebanon released the former wife of Isis chief Abu Bakr al-Baghdadi, along with 12 other prisoners, in a swap with Syria's al-Nusra Front on Tuesday.
The prisoner swap between Lebanon and the al Qaeda-affiliated al-Nusra Front saw the return of 16 Lebanese security officers who were captured by the Front, while the Lebanese army released 13 prisoners, including Saja al-Dulaimi, who is said to be Baghdadi's former wife.
The exchange took place in the border town of Arsal near Syria, according to Al Jazeera.
Saja al-Dulaimi was detained in Lebanon along with her daughter last year.
Lebanese authorities had conducted DNA tests and claimed the child was the daughter of the Islamic State's self-proclaimed caliph.
Abu Bakr al-Baghdadi is believed to be Saja al-Dulaimi's second husband, and the two were married for only three months, Lebanese authorities had said last year.
Dulaimi told reporters after her release that she plans to go to Turkey.
"I am Abu Bakr al-Baghdadi's ex-wife. We have been divorced for over six years now. I will head to Beirut and plan on leaving to Turkey," she told Al Jazeera.
The al-Nusra Front had killed Lebanese policeman Ali Bazzal last December in retaliation after Lebanon detained its leader Abu Ali al-Shishani's wife Ola Mithqal al-Oqaily.