Children who were among the over 400 people rescued from captivity at the Islamic School in Kaduna State have continued to narrate their ordeals in the hands of their captors.
Reuters spoke with seven victims and five parents of the victims, withholding their full names to protect their privacy.
One of the victims, simply known as Jibril, said he was hung up by his arms until bones in his shoulders broke because he had attempted to escape from captivity.
Another teenager freed in Thursday's police raid, said boys were often kept in chains and those caught stealing food were whipped until they bled.
"They used car engine belts and electrical cables to flog us.
"Teachers used to sexually harass us ... They tried to loosen my pants once but I fought them off and was beaten," 15-year-old Suleiman stated. Horror stories have continued to emerge about life in the two-storey house as the authorities try to find families of the victims who had spent years at the school.
Police arrested seven adults in the raid on the building, which had a sign in Arabic at the entrance declaring itself "House of Imam Ahmad Bin Hanbal for the Application of Islamic Teachings."
President Muhammadu Buhari, while reacting to the raid on the building shortly after he returned from a United Nations engagement in New York, described the school as a house of torture and place of slavery.
He said his administration would not condone abuse of fundamental rights of citizens, whether children or adults.
Some parents were said to have paid fees, believing it was an Islamic school.
While some described it as a good institution and dismissed talk of abuse, others saw it as a correctional facility.
But police and officials of the Kaduna State government said it was not registered as either.
Despite mixed accounts about its role, the abuse reported by victims has thrown a spotlight on Nigeria's struggle to provide enough school places for its rapidly expanding population, leaving a gap for unregulated institutions that poor parents sometimes turn to.
Nigeria's population will swell from 190 million to 400 million by 2050, according to UN figures.
Primary education is officially free but about 10.5 million Nigerian children aged five to 14 are not in school.
Prior to Thursday's police raid, those who made it out of the Kaduna institution were sometimes returned by families.
Some parents said they needed to discipline wayward children and others said they were too poor to look after all their kids.
Kaduna State Government said there were at least 77 boys under 18 years old held there. The youngest was five.
All the victims said beatings were regular and said children and men were frequently shackled. Days were dark, long and hungry: food was only served at 10 a.m. and 11 p.m.
Suleiman's elder brother sent him to the institution five months ago for skipping school. He was signed up to board while he studied Arabic and Islam's holy book, the Quran.
"They beat us everywhere in the house, even in the mosque. If you asked to speak with your family, they would shackle you," said the 15-year-old, who showed sores, scabs and scars on his back.
When Suleiman and three friends were caught trying to steal some garri, they were stripped and whipped.
"When the police raided the school, the whole place was in pandemonium, we were so happy," he said.
"What I want now is to return home. I'll be a good boy."
Jibril, now 17 and who was hung up for trying to escape when he was 10, said boys faced a stark choice: submit to regular sexual assault or be beaten. Jibril chose beatings.
"The teachers and prefects raped boys. Those who were sexually molested were enticed with canned fish. Those of us who refused were caned," he said, blaming a scar beside his left eye on a caning. "They used planks of wood to beat us."
He now struggles to raise his arms since his punishment for trying to escape. He was sent home for six months after that incident. His family returned him when he had healed.
Jibril and Suleiman are now in a safe house on the edge of Kaduna while the authorities try to find their relatives. Their temporary home is filled with laughter as boys and teenagers, up to 17 years old, play together. Those adults who were freed are staying in a neighbouring building.
At the Kaduna institution, relatives were not allowed to see boys for three months after admission and had limited visiting rights after that, parents and children said.
Punishment was swift for those who talked of any abuse, the boys said.
"If anyone tried to tell their family, they would be hung up from a wall or put in chains," said 14-year-old Umar, whose grandfather sent him to the facility two years ago for skipping school.
About 40 police officers finally raided the building, acting on a complaint by an uncle who was denied access to his nephews.
Police said they found several boys and men in chains. Some boys said they were shackled to broken power generators, which they dragged around, including to bed or the bathroom.
Police said they expected to charge seven people, who they said ran the institution, over physical and sexual abuse allegations. Those arrested could not be reached for comment.
Islamic schools, known as Almajiris, are common across the mostly Muslim dominated northern Nigeria. Muslim Rights Concern (MURIC), a local organisation, has estimated that about 10 million children attend Islamic schools in the north.
Some parents defended the Kaduna institution, which charged fees of N35,000 per term.
"There is no problem in this school," said a woman who only gave her name as Zainab, wearing a Muslim veil and speaking outside the locked gates.
She said she had seven children at the institution where she cooked meals and had not seen any abuse.
Ahmed Balarabe, a tailor who lives next to the site, said two of his children attended the school and he had never encountered any abuse.
"It was good for them, they became calm," he said. "They showed them how to read the Quran. I liked it."