The rescue, prompted by a tip from U.S. intelligence officers tracking the family, was announced in a statement Thursday from Pakistan’s army.

President Donald Trump identified the rescued captives as 31-year-old American Caitlan Coleman, 34-year-old Canadian Joshua Boyle and their three children.

Coleman and Boyle were abducted in 2012 and held hostage by the Haqqani network, a terrorist organization with ties to the Taliban, the president said.

“Yesterday, the United States government, working in conjunction with the Government of Pakistan, secured the release of the Boyle-Coleman family from captivity in Pakistan,” Trump said. “Today they are free.”