The Magic, trying to reach the playoffs for the first time in seven years, rallied to beat Memphis 123-119 in overtime for their fourth straight victory behind 31 points from Terrence Ross and 27 from Evan Fournier.
Nikola Vucevic had 25 points and D.J. Augustin added 20 points and eight assists for Orlando, which staged its biggest comeback of the season after trailing the Grizzlies by 17 points in the third quarter.
Orlando weathered seven lead changes in overtime, before finally putting the Grizzlies away when Vucevic drove through the heart of the Memphis defense for a layup to make it 121-118 with 35 seconds left. Fournier finished the scoring with a pair of free throws 11 seconds later.
Memphis, which has no chance of reaching the playoffs in the Western Conference, beat Orlando 105-97 almost two weeks ago and had the Magic down 14 to start the fourth quarter.
"I know what I'm talking about when I say you play loose and free when you have nothing to play for, and that's how they played," said Fournier, who has been with the Magic the last five years. "Memphis was very organized, they made shots and put up a really good fight."
Orlando's fourth-quarter rally was sparked by Ross' offense -- he hit three 3-pointers in the first six minutes of the final period -- and an aggressive defensive effort from the entire team. Orlando limited Memphis to 27.8 percent shooting (5 of 16) in the fourth quarter, after allowing the Grizzlies to shoot 57.5 percent the first three quarters.
"The things you have to do to play well defensively in an NBA game, we were terrible at until the fourth quarter," Magic coach Steve Clifford said. "Terrence Ross kept us in the game singlehandedly, but it was really our defense that won the game. We just did our jobs better in the fourth quarter. We played the way we had to play."
Memphis got 29 points from Tyler Dorsey, who replaced Mike Conley in the lineup. Conley didn't play because of what the team called "general soreness." Jonas Valanciunas had 23 points and 24 rebounds, and Justin Holiday scored 22 for the Grizzlies. Chandler Parson had 17 points.
"It was a heck of a duel going down the stretch," Memphis Coach J.B. Bickerstaff said. "Guys were making plays, making shots, they just made one more play than we did."
Memphis trailed 121-118 in the overtime when Dorsey was fouled on a 3-point attempt with 24 seconds left and made the first free throw, but missed the next two.
Fournier then hit two free throws to extend the Magic's lead to 123-119 and Memphis couldn't connect on any of three 3-point shots in the final seconds.
The Magic rallied from 14 down in the fourth quarter, tying the game at 110 on Fournier's driving layup with 17.7 seconds left in the game.
Dorsey missed a 15-foot jumper that would have put the Grizzlies back in front. Michael Carter-Williams got the rebound for Orlando with 1.7 seconds to play. He had teammate Wes Iwandu wide open for a breakaway layup, but Magic coach Steve Clifford called for a timeout and Williams never got the pass off.
Fournier missed a 3-pointer at the buzzer to send the game to overtime.
Grizzlies: C Joakim Noah (sore knee) sat out the game. ... Conley averaged 29.5 points in the last six Grizzlies' games. ... Memphis was 5 of 12 (41.7 percent) from the free throw line in the first half. ... Memphis is 3-3 in overtime games this season.
Magic: Orlando has won six straight home games for the first time in eight years. ... The Magic missed their first eight shots of the game to fall behind 13-1. ... Orlando is 1/3 in overtime games this season.
Grizzlies: Host Minnesota in second game of back-to-back Saturday.
Magic: Finish five-game homestand Monday against Philadelphia.
More AP NBA: https://apnews.com/NBA and https://twitter.com/AP-Sports
Fantasy baseball closer report: Which Cubs reliever is the one to have?
Here is all the latest on fantasy closers around the majors, including which arm is best option going forward in the Cubs' bullpen.
Stephen A. defends Magic after backlash
Stephen A. Smith wishes people didn't place as much blame on Magic Johnson for the issues in the Lakers organization.
Woj: Frank Vogel has difficult task ahead in LA
Adrian Wojnarowski explains that new Lakers coach Frank Vogel must work with LeBron James and the Lakers' young core to establish accountability.