A young boy whose plea to leave immigration detention so he could attend a spelling bee garnered national attention has been released in time for the competition, according to NBC News and a post by the family's attorney.

Deiver Henao Jimenez, 9, and his family were detained at the Dilley Immigration Processing Center, an Immigration and Customs Enforcement facility in Texas, since early March and were previously living in New Mexico, NBC News reported.

Deiver's situation was highlighted by the popular children's content creator Rachel Accurso, who goes by Ms. Rachel. Earlier this month, Ms. Rachel shared clips from a video call with Deiver while he was in detention.

"I don't want to be here anymore," Deiver said in the call. "Nothing is good here."

"I want to leave and go to the spelling bee," he said, adding that he wanted to return to school "to be happy" and that he missed his friends.