DALLAS -- Dirk Nowitzki said the ball felt flat coming out of his hand.

It turned out to be the perfect trajectory for the Dallas Mavericks.

Nowitzki hit a 3-pointer with 2.9 seconds left and the Mavericks rallied to beat the Chicago Bulls 100-98 on Saturday.

"This game was kind of like the story of our season," said Nowitzki, who finished with a season-high 35 points. "Every time someone writes us off, we find a way to come back."

The Mavericks trailed by 12 in the fourth quarter, but Nowitzki scored Dallas' last eight points in a 15-1 run over the final 3 1/2 minutes of the game.

After Jimmy Butler missed two free throws with 15.9 seconds remaining, Vince Carter drove down the lane and kicked a pass out to Nowitzki, who stepped into a 3-pointer with Luol Deng running at him.

Nowitzki raised both hands in the air and yelled as he headed toward the Dallas bench. Chicago's Nate Robinson then missed a jumper at the buzzer that would have tied it.

"It didn't feel great," Nowitzki said.

Dallas (36-37) remained a game and a half behind the Los Angeles Lakers and the Utah Jazz for the final playoff spot in the West. The Jazz beat Brooklyn and the Lakers held off Sacramento on Saturday night.

The Mavericks, who bounced back from a 25-point loss to Indiana, open a four-game road trip against the Lakers on Tuesday night.

"All these are must win for us," Dallas center Brandan Wright said. "We couldn't afford to lose two in a row."

Robinson scored 14 of his 25 points in the fourth in Chicago's first game since ending the Miami Heat's 27-game winning streak. The reserve guard made all seven of his 3-point attempts.

Carlos Boozer and Deng also had 25 points for the Bulls, who hit a season-high 12 3-pointers.

"This was definitely a tough loss," Chicago guard Kirk Hinrich said. "We just didn't finish it out. They have a lot of guys with lots of experience and I give them credit."

The Mavericks trailed 97-85 after Deng hit the Bulls' sixth 3-pointer of the final period.

Nowitzki made a 3 to cut Dallas' deficit to 97-95 with 53.9 seconds left. The Bulls, who missed three of four foul shots in the final minute, got a free throw from Boozer with 41.2 seconds remaining.

Nowitzki then hit a step-back jumper to get Dallas within one and Carter fouled Butler, who was open on a cut near the basket.

Butler missed two free throws, and the Mavericks grabbed the rebound and headed up the court. Carter looked to have a good look at the last shot, but instead passed to Nowitzki for the game-winner.

Nowitzki hit his first eight shots and finished 14 of 17 from the floor.

Robinson's jumper was well off and the Bulls were denied their season-high fourth straight victory.

Carter and Wright each scored 17 for the Mavericks, who finished 4-2 on a six-game homestand.

Dallas closed the third with a 12-1 run to tie it at 75.

Robinson scored all of Chicago's points in an 11-2 run to start the fourth. The 5-foot-9 guard then hit a 32-footer to beat the shot clock, putting the Bulls up 91-83 midway through the quarter.

"He was on fire," Nowitzki said of Robinson. "It was like a video game."

All-Star center Joakim Noah (right foot) was sidelined for the fourth straight game for Chicago, and guard Marco Belinelli (abdominal strain) missed his third straight. The Bulls also were without Richard Hamilton (lower back), who hasn't played since Feb. 26.

NOTES: Bulls point guard Derrick Rose, who hasn't played this season after injuring his left knee in the playoffs last year, worked out on the court before the game. Coach Tom Thibodeau did not provide a timetable for Rose's return. `'As long as he continues to improve, that's all we're concerned with," Thibodeau said. `'When he's comfortable, he'll get out there." . Dallas G O.J. Mayo went 1 of 13 with an injured left shoulder. Mayo had an MRI on Friday which revealed a sprained AC joint. He started the game wearing a harness, but played without it after the first quarter. . The Mavericks recalled G Jared Cunningham from the Texas Legends of the NBA Development League after the game. He averaged two points in eight games with Dallas earlier this season.

Also on HuffPost:

  • Utah Jazz guard Mo Williams (5) shoots and scores past Chicago Bulls guard Nate Robinson (2) and Joakim Noah (13) during the first half of an NBA basketball game on Friday, March 8, 2013, in Chicago. (AP Photo/Charles Rex Arbogast)

  • Chicago Bulls point guard Derrick Rose, right, talks with Utah Jazz center Al Jefferson before an NBA basketball game on Friday, March 8, 2013, in Chicago. (AP Photo/Charles Rex Arbogast)

  • Chicago Bulls center Joakim Noah (13) chases a loose ball past Brooklyn Nets forward Mirza Teletovic, left, during the second half of an NBA basketball game in Chicago on Saturday, March 2, 2013. The Bulls won 96-85. (AP Photo/Nam Y. Huh)

  • Carlos Boozer #5 of the Chicago Bulls is fouled by Chris Wilcox #44 of the Boston Celtics during the game on February 13, 2013 at TD Garden in Boston, Massachusetts. (Jared Wickerham/Getty Images)

  • Quincy Acy; Taj Gibson

    Chicago Bulls forward Taj Gibson (22) knocks down Toronto Raptors forward Quincy Acy, bottom right, during the second half of an NBA basketball game, Wednesday, Jan. 16, 2013, in Toronto. The Bulls won 107-105 in overtime. (AP Photo/The Canadian Press, Nathan Denette)

  • Carlos Boozer, Ivan Johnson

    Chicago Bulls forward Carlos Boozer (5) shoots past Atlanta Hawks forward Ivan Johnson during the first half of an NBA basketball game Monday, Jan. 14, 2013, in Chicago. (AP Photo/Charles Rex Arbogast)

  • Derrick Rose

    Chicago Bulls guard Derrick Rose works out with the team before an NBA basketball game between the Bulls and the Atlanta Hawks on Monday, Jan. 14, 2013, in Chicago. No date has been announced for his return to the lineup. (AP Photo/Charles Rex Arbogast)

  • Phoenix Suns v Chicago Bulls

    CHICAGO, IL - JANUARY 12: Joakim Noah #13 of the Chicago Bulls is fouled while rebounding by P.J. Tucker #17 of the Phoenix Suns at the United Center on January 12, 2013 in Chicago, Illinois. NOTE TO USER: User expressly acknowledges and agrees that, by downloading and or using this photograph, User is consenting to the terms and conditions of the Getty Images License Agreement. (Photo by Jonathan Daniel/Getty Images)

  • Chicago Bulls v New York Knicks

    NEW YORK, NY - JANUARY 11: J.R. Smith #8 of the New York Knicks dribbles the ball against the Chicago Bulls at Madison Square Garden on January 11, 2013 in New York City. NOTE TO USER: User expressly acknowledges and agrees that, by downloading and/or using this photograph, user is consenting to the terms and conditions of the Getty Images License Agreement. (Photo by Bruce Bennett/Getty Images)

  • CHICAGO, IL - NOVEMBER 26: Joakim Noah #13 of the Chicago Bulls looses the ball under pressure from (L-R) Ekpe Udoh #13, Beno Udrih #19, Mike Dunleavy #17 and Doron Lamb #20 of the Milwaukee Bucks at the United Center on November 26, 2012 in Chicago, Illinois. The Bucks defeated the Bulls 93-92. (Photo by Jonathan Daniel/Getty Images)

  • Chicago Bulls' Taj Gibson (22) and Cleveland Cavaliers' Tyler Zeller (40) battle for the ball in the second quarter of an NBA basketball game, Wednesday, Dec. 5, 2012, in Cleveland. (AP Photo/Tony Dejak)

  • Chicago Bulls center Joakim Noah, front, pulls in a rebound next to Dallas Mavericks center Troy Murphy during the first half of an NBA basketball game in Chicago on Wednesday, Nov. 28, 2012. (AP Photo/Nam Y. Huh)

  • CHICAGO, IL - NOVEMBER 28: Vladimir Radmanovic #77 of the Chicago Bulls moves against Troy Murphy #6 and Bernard James #5 of the Dallas Mavericks at the United Center on November 28, 2012 in Chicago, Illinois. The Bulls defeated the Mavericks 101-78. (Photo by Jonathan Daniel/Getty Images)

  • CHICAGO, IL - DECEMBER 04: Nate Robinson #2 of the Chicago Bulls reacts after hitting a three point shot against the Indiana Pacers at the United Center on December 4, 2012 in Chicago, Illinois. The Pacers defeated the Bulls 80-76. (Photo by Jonathan Daniel/Getty Images)

  • Chicago Bulls forward Carlos Boozer, right, shoots over Dallas Mavericks forward Shawn Marion during the second half of an NBA basketball game in Chicago on Wednesday, Nov. 28, 2012. (AP Photo/Nam Y. Huh)

  • CHICAGO, IL - NOVEMBER 26: Richard Hamilton #32 of the Chicago Bulls drives against Doron Lamb #20 of the Milwaukee Bucks at the United Center on November 26, 2012 in Chicago, Illinois. The Bucks defeated the Bulls 93-92. (Photo by Jonathan Daniel/Getty Images)

  • Boston Celtics guard Rajon Rondo (9) drives on Chicago Bulls center Joakim Noah during the first half of an NBA basketball game, Monday, Nov. 12, 2012, in Chicago. (AP Photo/Charles Rex Arbogast)

  • Chicago Bulls forward Taj Gibson walks back to the bench during a time out during the closing second of an NBA basketball game against the Boston Celtics, Monday, Nov. 12, 2012, in Chicago. The Celtics won 101-95. (AP Photo/Charles Rex Arbogast)

  • CHICAGO, IL - NOVEMBER 08: Loul Deng #9 of the Chicago Bulls looks to move against Russell Westbrook #0 of the Oklahoma City Thunder at the United Center on November 8, 2012 in Chicago, Illinois.The Thunder defeated the Bulls 97-91. (Photo by Jonathan Daniel/Getty Images)

  • CHICAGO, IL - NOVEMBER 08: Eric Maynor #6 of the Oklahoma City Thunder reaches in to try and knock the ball away from Nate Robinson #2 of the Chicago Bulls at the United Center on November 8, 2012 in Chicago, Illinois. (Photo by Jonathan Daniel/Getty Images)

  • Chicago Bulls power forward Carlos Boozer (5) knocks the ball out of the hands of Sacramento Kings power forward Jason Thompson during the first half of an NBA basketball game, Wednesday, Oct. 31, 2012, in Chicago. (AP Photo/Charles Rex Arbogast)

  • CHICAGO, IL - NOVEMBER 08: Joakim Noah #13 of the Chicago Bulls passes the ball next to Kirk Hinrich #12 against the Oklahoma City Thunder at the United Center on November 8, 2012 in Chicago, Illinois.The Thunder defeated the Bulls 97-91. (Photo by Jonathan Daniel/Getty Images)

  • CHICAGO, IL - NOVEMBER 08: Valdimir Radmanovic #77 of the Chicago Bulls looks back at the bench after missing a shot against the Oklahoma City Thunder at the United Center on November 8, 2012 in Chicago, Illinois.The Thunder defeated the Bulls 97-91. (Photo by Jonathan Daniel/Getty Images)

  • CHICAGO, IL - OCTOBER 31: Carlos Boozer #5 of the Chicago Bulls positions for a rebound between James Johnson #52 and Jason Thompson #34 of the Sacramento Kings at the United Center on October 31, 2012 in Chicago, Illinois. The Bulls defeated the Kings 93-87. (Photo by Jonathan Daniel/Getty Images)

  • Chicago Bulls forward Carlos Boozer (5) reacts to a call during the first half of an NBA basketball game against the New Orleans Hornets in Chicago, Saturday, Nov. 3, 2012. (AP Photo/Nam Y. Huh)

  • Cleveland Cavaliers' Daniel Gibson, left, fouls Chicago Bulls' Marco Belinelli, from Italy, during the fourth quarter of an NBA basketball game Friday, Nov. 2, 2012, in Cleveland. The Bulls beat the Cavaliers 115-86. (AP Photo/Mark Duncan)

  • Orlando Magic's Josh McRoberts knocks the ball from the hands of Chicago Bulls' Luol Deng during an NBA basketball game in Chicago on Tuesday, Nov. 6, 2012. Deng scored 15 of his 23 points in the second half to lead the Chicago Bulls to a 99-93 win. (AP Photo/Charles Cherney)

  • Chicago Bulls forward Carlos Boozer (5) shoots over Oklahoma City Thunder guard Kevin Martin (23) as Thabo Sefolosha (2) watches during the first half of an NBA basketball game, Thursday, Nov. 8, 2012, in Chicago. (AP Photo/Charles Rex Arbogast)

  • CHICAGO, IL - OCTOBER 31: Kirk Hinrich #12 of the Chicago Bulls looks to pass over Isaiah Thomas #22 of the Sacramento Kings at the United Center on October 31, 2012 in Chicago, Illinois. The Bulls defeated the Kings 93-87. (Photo by Jonathan Daniel/Getty Images)

  • CHICAGO, IL - OCTOBER 31: Taj Gibson #22 of the Chicago Bulls grabs a rebound against the Sacramento Kings at the United Center on October 31, 2012 in Chicago, Illinois. The Bulls defeated the Kings 93-87. (Photo by Jonathan Daniel/Getty Images)

  • CHICAGO, IL - OCTOBER 31: Carlos Boozer #5 of the Chicago Bulls shoots over Chuck Hayes #42 of the Sacramento Kings at the United Center on October 31, 2012 in Chicago, Illinois. The Bulls defeated the Kings 93-87. (Photo by Jonathan Daniel/Getty Images)

  • CHICAGO, IL - OCTOBER 31: Taj Gibson #22 of the Chicago Bulls passes over Isaiah Thomas #22 of the Sacramento Kings at the United Center on October 31, 2012 in Chicago, Illinois. (Photo by Jonathan Daniel/Getty Images)

  • CHICAGO, IL - OCTOBER 31: Joakim Noah #13 of the Chicago Bulls drives around Jason Thompson #34 of the Sacramento Kings at the United Center on October 31, 2012 in Chicago, Illinois. The Bulls defeated the Kings 93-87. (Photo by Jonathan Daniel/Getty Images)

  • Chicago Bulls' Kirk Hinrich, left, tries to keep up with Orlando Magic's DeQuan Jones during the first quarter of an NBA basketball game in Chicago on Tuesday, Nov. 6, 2012. (AP Photo/Charles Cherney)