Stephen Curry finished one 3-pointer shy of the NBA career record on Monday night, making five 3-pointers and scoring 26 points to help the Golden State Warriors rally late for a 102-100 win over the Indiana Pacers.

Curry is closing in on Ray Allen’s record of 2,973 and is likely to break it Tuesday night on the NBA’s grandest stage — Madison Square Garden.

Also read: NBA: Cleveland Cavaliers score 81 points in first half, beat Sacramento Kings 117-103

A near-sellout crowd was less interested in the result of the game than watching history. The crowd roared each time Curry lined up a 3, gasped when he’d drive to the basket and erupt each time he inched closer to the record. For the final 90 seconds, everyone inside Gainbridge Fieldhouse was on their feet.

Domantas Sabonis led Indiana with 30 points and 11 rebounds and Malcolm Brogdon added 23 points and eight assists, but it wasn’t enough to protect their lead down the stretch.

Also read: NBA: Utah Jazz beat Washington Wizards 123-98, extend winning streak to 7 games

While Curry finished 5 of 15 from beyond the arc, his final 3 got the Warriors within 100-98 and he tied the score when he drove for a layup with 48.5 seconds left. Kevin Looney’s putback with 13.8 seconds left broke the tie and Indiana then turned it over.

Clearly, Curry and his teammates were pressing for the record — and the Pacers defense wanted to run the Warriors off the 3-point line every chance it could. The result: Golden State missed its first seven shots from beyond the arc before Curry finally ended the streak early in a 12-0 run that gave the Warriors a 39-36 lead midway through the second quarter.

Also read: NFL: Detroit Lions lose even more key players in blowout loss to Denver Broncos

It didn’t last long in this back-and-forth game in which Indiana led most of the way.

But Curry started heating up in the third quarter with his fourth 3 of the night to give Golden State a 79-78 lead. Indiana answered by closing the quarter on a 7-2 run and taking an 84-80 lead. The Pacers led the entire fourth — until Curry’s flurry followed by Looney’s decisive basket.