The abducted students of Government Science Secondary School, Kankara, Katsina, have been freed.
A top official of the Katsina state government who broke the news to journalists on Thursday night, said the students are currently on their way to the government house from the hideout of their abductors.
The whereabouts of over 300 students have been unknown since Friday night when gunmen attacked the school.
Boko Haram later claimed responsibility for the incident but Aminu Masari, the governor, said bandits were behind the attack.
The government official, who craved anonymity, said a total 340 students were being expected.
It is unclear if any ransom was paid for the release of the children but some of the abductors had earlier asked the parents to raise funds for the release of their children.
Masari had also said his government was in talks with the abductors, expressing confidence that there was progress in the negotiation.