Ahmed Mohamed, the Texas teenager who was arrested for bringing to school a homemade clock that was mistaken for a bomb, will be leaving the U.S. with his family for the foreseeable future.

The 14-year-old's family made the announcement following a whirlwind month that included a visit to the White House on Monday.

"After careful consideration of all the generous offers received, we would like to announce that we have accepted a kind offer from Qatar Foundation for Education, Science and Community Development (QF) for Ahmed to join the prestigious QF Young Innovators Program," the family said in a statement Tuesday, according to The Washington Post.

"(The program) reflects the organization's on-going dedication to empowering young people and fostering a culture of innovation and creativity."

Last month, Mohamed was pulled from class, handcuffed and taken to a detention centre after a teacher at his suburban Dallas high school thought his clock could be a bomb. Police did not charge Ahmed, but he was suspended for three days. Mohamed's father later withdrew his son from MacArthur High School.

The incident sparked the hashtag #IStandWithAhmed, bringing out legions of supporters including Facebook's Mark Zuckerberg, Google co-founder Sergey Brin, and U.S. President Barack Obama.

The teen met and chatted briefly with the president at "Astronomy Night" on Monday, a science event which Obama personally invited him to after reaching out to him on Twitter.

SO HAPPY, I CANT BELIEVE THAT I MET THE #president of THE #UNITEDSTATES!!! A photo posted by Ahmed Mohamed (@official_istandforahmed) on Oct 20, 2015 at 9:58am PDT

Mohamed also met with Sudan's President Omar al-Bashir earlier this month, a visit which drew some criticism as the leader is wanted by the International Criminal Court for alleged war crimes in Darfur. The boy's father, Mohamed Hassan al-Sufi, a Sudanese immigrant, is a former presidential candidate who ran opposing al-Bashir.

The teen was also in Doha, Qatar earlier this month, a trip which he described as "amazing!!"