Story highlights Ahmed Mohamed has accepted a scholarship from Qatar Foundation for Education, Science and Community Development

"The teachers were great. I think I will learn a lot and have fun, too," says the teenager

Ahmed was arrested after bringing a homemade clock to school that authorities initially thought was a hoax bomb

(CNN) A Texas teenager who gained national attention after he was arrested for bringing a homemade clock to school is moving to Qatar with his family to continue his education.

Ahmed Mohamed has accepted a scholarship from Qatar Foundation for Education, Science and Community Development, or QF, his family said.

They thanked all the people and places that reached out in support after the "unfortunate incident of Ahmed's arrest." The family visited QF 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 said in the statement.

In the hours after his arrest last month, #IStandWithAhmed was trending worldwide on Twitter, with critics alleging that Ahmed, 14, was the victim of religious profiling. He is Muslim.

Read More