LiAngelo Ball takes "full responsibility" for stealing from the stores in China and apologizes for the incident. (2:00)

President Donald Trump asked on Twitter whether the three UCLA basketball players released from detention in China on Tuesday will thank him for his help.

Do you think the three UCLA Basketball Players will say thank you President Trump? They were headed for 10 years in jail! — Donald J. Trump (@realDonaldTrump) November 15, 2017

UCLA freshmen LiAngelo Ball, Cody Riley and Jalen Hill, who had been detained in China for the past week on suspicion of shoplifting, landed in Los Angeles on Tuesday evening and boarded a van to return to campus.

Trump, who returned late Tuesday from a trip through Asia, said he raised their case with President Xi Jinping of China during a visit to Beijing last week.

The players were questioned last week about allegedly stealing sunglasses from a Louis Vuitton store next to the team's hotel in Hangzhou, where the Bruins had been staying before leaving for Shanghai to face Georgia Tech on Friday. They were released on bail early Nov. 8 and had been staying at a lakeside hotel in Hangzhou prior to flying home.

"Our president said to Xi, 'Do you know anything about these knuckleheads that got caught allegedly stealing?'" John Kelly, the president's chief of staff, told The New York Times. "The president was saying, 'It's not too serious. We'd love to see this taken care of in an expeditious way.'"

A source told ESPN's Arash Markazi that there is surveillance footage of the players shoplifting from three stores inside a high-end shopping center, which houses Louis Vuitton, Gucci, Yves Saint Laurent and Salvatore Ferragamo stores.

It's not yet clear what the players were charged with or what penalty they faced in China, but Kelly said a felony conviction related to the value of the items that they allegedly took could have resulted in a prison sentence of five to 10 years.

Kelly told the Times that he talked to UCLA associate athletic director Chris Carlson in person and to the players by phone while in China, and he told them that President Trump had put in a word to help them.

"To say the least, they were very apologetic," Kelly told the Times. "They were just profuse in their apologies for embarrassing the country and embarrassing the team. ...

"I bet they learned a lesson in their lives."

UCLA chancellor Gene D. Block, while saying he was "grateful" the players were headed home, issued a statement Tuesday saying the school will look into the matter and decide what action will be taken. Ball, Riley, Hill, UCLA coach Steve Alford and Bruins athletic director Dan Guerrero will hold a news conference Wednesday.

Pac-12 conference commissioner Larry Scott also thanked Trump, the White House and the State Department for their efforts.

The Associated Press contributed to this report.