OKLAHOMA CITY -- Serge Ibaka showed the Thunder the best of what they let go.
The forward, traded from Oklahoma City to Orlando in the offseason, hit a baseline jumper with less than a second remaining to give the Magic a 119-117 win over Russell Westbrook and the Thunder on Sunday night.
"Coach called my name, and I was ready," Ibaka said. "I work on my shot every night and every summer, so I was just ready to make a play."
Though he enjoyed his time with the Thunder and respects the organization and the fans, he said it was an emotional day and it was important for him to play well. He scored a career-high 31 points and added nine rebounds and four blocks.
"I'm not going to lie to you, it feels good," he said.
With the score tied in the final minute, Westbrook missed a pull-up jumper, and Orlando rebounded and called timeout with 11 seconds remaining to set up Ibaka's winner with 0.4 seconds left. Ibaka pump-faked Steven Adams, got him to bite, then drained the shot.
"He had a special performance," Magic coach Frank Vogel said. "A night I'm sure he'll remember for the rest of his career."
Ibaka was cheered loudly during pregame introductions. He acknowledged the fans by twice raising both arms to the sky.
"It shows that the people still love me, and I respect that and appreciate that a lot," he said.
Westbrook finished with 41 points, 16 assists and 12 rebounds for his third triple-double of the season and 40th of his career. The Thunder had won 20 straight when Westbrook tallied a triple-double.
"We were playing too slow," he said. "The faster we play, the harder it is to guard us, especially when we get the ball moving."
It was the third straight home loss for the Thunder after a 6-1 start.
"We've got a lot we need to work on and continue to work on, and all these guys are working, are trying, are really giving good effort," Thunder coach Billy Donovan said.
Oklahoma City's Victor Oladipo, who came to the Thunder in the Ibaka deal, scored 12 points.
The Magic led by 21 in the second quarter and were up 57-47 at halftime. Ibaka scored 19 points before the break to match Westbrook's 19 points.
The Thunder rallied late in the third quarter. A putback by Enes Kanter with 1:35 left in the third quarter tied the game at 80. Oklahoma City led 84-82 heading into the fourth quarter.
After Ibaka's shot with 0.4 seconds left, Nick Collison and Westbrook couldn't connect on a lob near the basket.
Magic: Ibaka had 13 points, six rebounds and four blocks in the first quarter. ... Payton finished one point short of his career high. ... Jeff Green, another former Thunder player, scored 11 points.
Thunder: Oklahoma City made 6 of 25 shots in the first quarter and missed all eight of its 3-pointers to fall behind 27-13. ... The Thunder made 14 of 21 shots in the third quarter and outscored the Magic 37-25. ... Domantas Sabonis, also acquired in the Ibaka deal, started and scored three points on 1-for-6 shooting.
Orlando made 11 of 24 3-pointers, while Oklahoma City made just 7 of 25.
Ibaka, on finding the visiting locker room: "This is my first time to be here," he said. "I haven't been here before. I was walking here, and I didn't know which door. They had to show me every time. It feels kind of weird."
The Magic play at Vogel's former team, the Indiana Pacers, on Monday.
The Thunder play at the Detroit Pistons on Monday.
Follow Cliff Brunt on Twitter: www.twitter.com/CliffBruntAP.
Chris Webber reflects on his basketball journey ahead of HOF induction
Chris Webber talks with Myron Medcalf about his NBA career and the infamous timeout game at Michigan ahead of his Hall of Fame induction.
Kawhi, PG not entertained by Fitz and the Tantrums at Clippers' ceremony
The Clippers hold a ceremony breaking ground on new arena and the entertainment doesn't seem to entertain Kawhi Leonard and Paul George.
Will new arena help Clippers build their own identity?
Kendrick Perkins says new arena will help Clippers separate themselves from the Lakers and start fresh.