Teenage student, who was arrested in Texas after taking a homemade clock to school, accepts scholarship offer in Doha.

An American boy arrested for bringing a homemade clock to his Texas school, that was mistaken for a bomb, is moving to Qatar after accepting a scholarship offer to study there.

Fourteen-year-old Ahmed Mohamed’s family announced the move in a statement on Tuesday, a few hours after he was at the White House for an astronomy night hosted by President Barack Obama.

The bespectacled ninth-grader became a global sensation after his September arrest, which many believe was influenced by bias against his Muslim religion.

Mohamed accepted an offer from the Qatar Foundation to study in its Young Innovators Programme.

“This means, that we, as a family, will relocate to Qatar where Ahmed will receive a full scholarship for secondary and undergraduate education,” his family said in a statement.

Mohamed visited Doha earlier in the month and has been on a worldwide tour, visiting a number of foreign dignitaries, including Sudanese President Omar al-Bashir, according to Sudanese media.

A statement released by the Qatar Foundation on Tuesday said the Young Innovators Programme “encourages recipients to follow their aspirations in education while fostering a culture of innovation and creativity”.

Quoted in the Qatar Foundation’s statement , Mohamed said, “I was really impressed with everything that Qatar Foundation has to offer and the campuses are really cool.

“I got to meet other kids who are also really interested in science and technology. I think I will learn a lot and also have lots of fun there.”

At the White House on Monday night, Obama briefly met Mohamed as he shook hands with students at the event, giving the student a hug.

At the time of the arrest, Obama’s Twitter feed had a message of support for Mohammed, which read: “Cool clock, Ahmed. Want to bring it to the White House? We should inspire more kids like you to like science. It’s what makes America great.”

“It was amazing, and a honour meeting President Obama,” Mohamed said on Twitter after meeting Obama.