The Young Innovators Program at the Qatar Foundation for Education, Science and Community Development said it was giving Ahmed, a 14-year-old from Irving, Tex., a full scholarship. The foundation works in partnership with several American universities, including Carnegie Mellon, Texas A & M, Georgetown and Northwestern.

Image

Ahmed Mohamed, a 14-year-old freshman at a high school in Irving, Tex., was detained by the police after he took a homemade alarm clock to school to show an engineering teacher.CreditVernon Bryant/The Dallas Morning News, via Associated Press

Ahmed’s family said the foundation would fund his high school and undergraduate education.

“I really enjoyed my time at Education City, where I met other kids like me who are part of the Young Innovators Program,” Ahmed said in a statement about time he spent in Qatar this month. “Qatar was a cool place to visit. I loved the city of Doha because it’s so modern. I saw so many amazing schools there, many of them campuses of famous American universities. The teachers were great. I think I will learn a lot and have fun, too.”

Ahmed was detained on Sept. 14 when he showed a teacher at his school, MacArthur High, his homemade clock, which the teacher feared was a bomb. No charges were filed, but his detention provoked widespread accusations of racial profiling, sparking a larger discussion of Islam, immigration and ethnicity.

In a statement, Ahmed’s family said it was “overwhelmed by the many offers of support.” He has visited Google and met with leaders from Jordan, Turkey and Sudan. Visiting the White House on Monday, he hugged and spoke briefly to President Obama.

Ahmed’s siblings will find other schools, his sister, Eyman Mohamed, told The Dallas Morning News. Mohamed El Hassan, Ahmed’s father, told the paper that the family would move to a place where his children could study and would be “accepted by that country.”

A version of this article appears in print on , Section A, Page 18 of the New York edition with the headline: Student’s Clock in Next Home Will Display Qatar Time. Order Reprints | Today’s Paper | Subscribe