Nigeria’s military will release more than 300 prisoners accused of involvement in the Boko Haram insurgency after a court ruled there was no evidence they committed crimes.

More than 40,000 people have been killed and an estimated two million displaced since 2009 when a jihadist insurgency broke out in northeastern Nigeria, sparking one of the world’s worst humanitarian crises.

Major General Edward Buba, a spokesman for Nigeria’s armed forces, announced Thursday that 313 alleged Boko Haram fighters would be released following a court order in Borno, the state at the heart of the jihadist insurgency.

“The court ordered their release in the absence of evidence (against them) after completion of investigations,” Lt. Gen. Buba said while briefing the press in the capital Abuja. He did not specify where the suspects were being held or how long they had been held.

Nigeria is implementing an amnesty program for jihadists who surrender voluntarily. It integrates them into social reintegration programs, but there is no shortage of tensions in some communities.

The kidnapping of approximately 270 schoolgirls by Boko Haram jihadists in 2014 had sparked international interest and a major online campaign with the message #BringBackOurGirls. Next month marks 10 years since their abduction and the fate of dozens of these girls is still unknown.