Once Mayo shifted the dribble to his right hand, Harris knew he had a chance to knock the ball loose and help the Atlanta Hawks pick up a rare road victory.
Atlanta was up 99-98 when Elton Brand knocked the ball away from Smith. Mayo picked it up and was driving for the go-ahead basket.
|More on Hawks-Mavericks|
|More NBA coverage|
Harris, who played 3½ seasons with the Mavericks before he was sent away as part of the Jason Kidd trade in 2008, snuck up from behind and poked the ball away from Mayo. He then saved the ball from going out of bounds with 23.9 seconds left.
"I just kind of wanted to sit behind and see if he would put the ball back in his right hand," Harris said. "When he did, I was able to steal it away at the right time."
Smith connected on two free throws to extend Atlanta's lead to 101-98. Needing a 3-pointer to tie it, Mayo made a bad pass that the Hawks stole with 14.9 seconds remaining.
"Obviously, we're disappointed," Mayo said. "It was a winnable game. We didn't make the plays down the end and they made some plays."
Al Horford had 21 points and 10 rebounds and Teague added 20 points and nine assists.
The Hawks came into the game having lost eight of nine road games since Jan. 4.
"Any time you go on the road and get a win, it's always big," Atlanta coach Larry Drew said. "We've had our ups and downs, as most teams do. But we have not fragmented when that has happened."
Dirk Nowitzki scored 24 points and Mayo chipped in with 19 for the Mavericks, who fell five games behind the Houston Rockets for the eighth-place spot in the Western Conference.
Even though the game was decided late, coach Rick Carlisle was disappointed in Dallas' rough first quarter. The Mavericks fell behind 10-0 and trailed by as much as 13 early.
"I didn't have our guys ready to play," Carlisle said. "You've got a team of guys that just goes out and is walking around at the beginning of a game. That's on the coach."
Dallas, which didn't lead until the fourth quarter, took a 91-86 lead when Brandan Wright scored five straight points. Smith answered with a dunk and a 3-pointer to tie the game at 91 with 5:44 left.
Smith whipped a pass to Horford for a dunk that stretched Atlanta's lead to 96-92 and he hit a 3-pointer over Nowitzki that made it 99-94 with 1:29 left.
Nowitzki connected on a pair of free throws and short shot over Smith that cut it to 99-98 with 44.9 seconds remaining.
That set up the frantic final seconds where the Hawks held on for their eighth win in 20 games after starting 20-10.
Smith was 10 of 15 shooting, including four 3-pointers, and handed out six assists. The forward knows his name has been in trade rumors that have surfaced in the past few days.
"I'm just trying to focus on getting better as an individual on the court," Smith said. "As long as I'm with the Atlanta Hawks, I can only focus on how to make this team better."
Dallas rebounded from its slow start to pull within 49-48 at half.
Darren Collison's 3-point play tied the score at 64 midway through the third.
Korver hit a 3-pointer in transition and John Jenkins followed with a basket to give Atlanta an 82-74 advantage.
The Mavericks scored seven points over the final 1:04 of the third, capped by two free throws from Nowitzki, to pull to 82-81.
|Devin Harris mugs O.J. Mayo late in the fourth, stealing a potential fast-break bucket and preserving the Hawks' lead. (AP)|
|Atlanta (28-22) «||31||18||33||23||105|
|ATL:J. Smith 26 Pts
ATL:J. Smith 13 Reb
ATL:J. Teague 9 Ast
|DAL:D. Nowitzki 24 Pts
DAL:D. Nowitzki 7 Reb
DAL:D. Collison 10 Ast
|Players of the Game|
Majestic Josh Smith Hawks Player T-Shirt - Red
$23.95 Shop Now!
|J. Smith, SF||40||10-15||2-4||13||6||5||26|
|J. Teague, PG||37||7-14||6-7||4||9||3||20|
|A. Horford, C||35||10-14||1-2||10||2||3||21|
|D. Harris, PG||32||5-11||2-2||0||5||3||15|
|A. Tolliver, PF||24||0-4||1-2||5||1||1||1|
|K. Korver, SG||30||3-6||2-2||4||1||2||10|
|Z. Pachulia, C||16||3-7||2-4||10||1||2||8|
|J. Jenkins, SG||16||2-4||0-0||1||0||1||4|
|D. Stevenson, SG||6||0-1||0-0||0||0||0||0|
|I. Johnson, PF||4||0-1||0-0||1||1||0||0|
|J. Pargo, PG||Did Not Play|
|J. Petro, C||Did Not Play|
|L. Williams, SG||Did Not Play|
|A. Morrow, SG||Did Not Play|
|M. Scott, PF||Did Not Play|
|Complete Box Score|
|O. Mayo, SG||38||9-20||0-0||2||1||4||19|
|D. Nowitzki, PF||36||8-14||5-6||7||2||2||24|
|D. Collison, PG||33||5-13||4-4||5||10||4||14|
|S. Marion, PF||29||3-10||3-3||5||0||1||10|
|B. James, C||7||0-1||0-2||3||1||0||0|
|V. Carter, SG||23||4-10||1-2||5||3||2||13|
|E. Brand, PF||21||2-5||2-2||3||0||3||6|
|B. Wright, PF||20||5-6||1-1||5||1||0||11|
|R. Beaubois, PG||15||0-3||0-0||1||5||1||0|
|J. Crowder, SF||12||2-5||0-0||1||1||2||4|
|M. James, PG||5||0-2||0-0||0||1||1||0|
|D. Jones, SG||Did Not Play|
|C. Kaman, C||Did Not Play|
|D. Jones, SG||Did Not Play|
|J. Cunningham, SG||Did Not Play|
|Complete Box Score|