KABUL, Afghanistan — The 14-year-old boy squatted on his haunches on the floor of the prison and, unbidden, began to chant the verses of a Pashto poem in a high, beautiful voice. It was an a cappella elegy in which a prisoner implores his family not to visit him on the Muslim holiday of Eid.

And do not come to us for Eid, for we are not free to welcome you.

I don’t want you to look at my chest, for there are no buttons on my shirt.

Don’t come to this asylum, for we are all lunatics in here.

The boy’s name was Muslim, and he was among 47 boys being held in the Badam Bagh juvenile detention center in Kabul as national security threats. Most were charged with planting, carrying or wearing bombs, and many of them, like Muslim, were accused of trying to become suicide bombers.

None of Muslim’s family visited him during Eid last summer. “They are angry with me,” he said. “I don’t blame them.”