PHOENIX (AP) Archie Goodwin hit a 3-pointer from atop the arc with 0.1 seconds left and the Phoenix Suns beat the Atlanta Hawks 98-95 on Saturday night to end a six-game losing streak.

Goodwin led the Suns with 24 points, and Phoenix won for the second time in 17 games.

Tyson Chandler tied a Suns record with 27 rebounds, including 17 in the first half, and also had 13 points and a season-high five assists.

More from FoxSports

Kent Bazemore led the Hawks with 21 points. Bazemore hit a tying 3-pointer with 47.4 seconds left, but Chandler's tip-in with 24.6 seconds remaining gave the Suns a 95-93 lead. Bazemore tied it again 5 seconds later, setting up Goodwin's 3.

Alex Len had 16 points and 12 rebounds for Phoenix, while P.J. Tucker scored 16 points and Devin Booker had 15.

The Suns led by 15 points in the third quarter before the Hawks cut the lead to five, but Phoenix took a 72-60 lead on Tucker's baseline 3 with 57 seconds left.

The Hawks went on a 10-0 run over the first 2 minutes of the fourth quarter, and Kyle Korver hit back-to-back 3s to tie the score at 74. But Goodwin's flying dunk down the lane energized the Suns and the crowd, giving Phoenix a 79-77 lead with 7:08 left.

The Suns led throughout the entire second quarter despite eight points from the Hawks' Dennis Schroder, who finished with 19. Atlanta trailed 41-39 with 5:19 left, but went scoreless the rest of the period while the Suns made 5 of 6 free throws to take a 48-39 halftime lead.

BOARD CRASHER

Chandler had 20 rebounds in his last game against San Antonio and became the first Suns player with consecutive 20-rebound games. He's also the first to grab 14 or more rebounds in three straight games since Amare Stoudemire from Feb. 25-28, 2007. His 23rd rebound came off a fourth-quarter Hawks miss, on which Chandler ripped the ball from teammate Booker and barked at him as Booker backed off and smiled. Chandler's 27 rebounds equaled the record total for Paul Silas in 1971.

TIP-INS

HAWKS: F Paul Millsap missed the game for personal reasons but is expected to rejoin the team in time for its game Monday night at Denver. Millsap's absence meant that Al Horford is the only Hawk to appear in all of the team's 45 games this season. ... Coach Mike Budenholzer said he hopes former Cavaliers coach David Blatt, recently fired, gets another opportunity in the NBA. ''It's just hard in our league to see somebody that's had that much success, that's done that well, is that well respected,'' Budenholzer said. ''He deserves another opportunity. He's a great coach.''

SUNS: Only two of the five injured players from earlier in the week were available to play for Phoenix: Tucker started and Mirza Teletovic played 15 minutes. ... G Brandon Knight (left abductor strain), F Jon Leuer (back spasms) and F Markieff Morris (right shoulder strain) did not play. ... The Suns have used 13 different starting lineups and 10 players have combined to miss 54 games this season. ... Former Suns guard and Sacramento mayor Kevin Johnson sat courtside and got a standing ovation when introduced to the crowd.

UP NEXT

Hawks: At Denver Monday night.

Suns: At Philadelphia Tuesday night.