President Trump got his wish Wednesday afternoon when the three UCLA basketball players busted in China for shoplifting thanked him for his help in getting them home.

The three, Jalen Hill and Cody Riley and LiAngelo Ball — younger brother of Los Angeles Lakers rookie Lonzo Ball — also apologized to their families and their school, while thanking the Chinese cops for treating them well.

“I would like to thank President Trump and the United States government for the help they provided. I am grateful to be back home and I will never make a mistake like this again. I am extremely sorry for those that I let down,” said Ball, reading from a script in a monotone.

A contrite Riley and Hill expressed similar sentiments.

All three have been suspended indefinitely by UCLA.

Trump earlier in the day was apparently piqued that they hadn’t thanked him earlier.

“Do you think the three UCLA Basketball Players will say thank you President Trump? They were headed for 10 years in jail!” the president tweeted in the morning.

Trump has said he sought the help of Chinese President Xi Jinping in securing the release of the trio.

The hoopsters were detained in Hangzhou last week amid allegations of shoplifting sunglasses at a Louis Vuitton shop before the Bruins beat Georgia Tech in their season-opening game in Shanghai as part of the Pac-12 China game.