WASHINGTON — President Donald Trump urged three suspended UCLA basketball players on Thursday to thank China's president for their freedom after they shoplifted in China.

The president's suggestion came a day after he tweeted: "Do you think the three UCLA basketball players will say thank you President Trump. They were headed for 10 years in jail."

The trio apologized that day and publicly thanked Trump, who was in Asia last week, for his help. On Thursday morning, the president sent another tweet: "You're welcome. go out and give a big Thank You to President Xi Jinping of China who made your release possible."

In the same tweet, Trump said, "HAVE A GREAT LIFE! Be careful, there are many pitfalls on the long and winding road of life!"

Later in the day, as he rallied House Republicans before a crucial vote on a tax overhaul, Trump talked about his efforts to release the players

Rep. Steve Womack of Arkansas said Trump "personally engaged the Chinese president and it turned out the way it did," with the players released. He said China is known for being "extremely punitive" with criminal suspects, adding: "This could have been a disaster for those families."

Freshmen LiAngelo Ball, Jalen Hill and Cody Riley were detained in Hangzhou for questioning last week before the Bruins beat Georgia Tech in their season-opening game in Shanghai. The rest of the team returned home Saturday.

Athletic director Dan Guerrero said the shoplifting occurred when the team had 90 minutes of free time on Nov. 6 in Hangzhou. He said the three took items from three stores.

The players are suspended indefinitely, and coach Steve Alford says they will have to earn their way back onto the team.