Rick Nash of the Rangers celebrates his third-period goal against...

Rick Nash of the Rangers celebrates his third-period goal against the Sabres with teammates Mika Zibanejad and Pavel Buchnevich at Madison Square Garden on Thursday, Jan. 18, 2018. Credit: Jim McIsaac

Pavel Buchnevich scored the go-ahead goal with 3:58 left in the third period — his first goal in 13 games — to give the Rangers a 4-3 win over the Buffalo Sabres at Madison Square Garden on Thursday night.

Rick Nash, who scored twice for the second straight game, forced a turnover and Mika Zibanejad fed Buchnevich from behind the net for a tap-in to break the third tie of the game.

“It’s hard,” Nash said of Buchnevich, 21, whose goal was his 12th. “It seems like in your second year, the honeymoon stage is over and the excitement is over. He had a great start to the season, he was unbelievable, and he’s figuring it out. The thing with him is, he could be a star in this league. He’s got all the tools.”

The Nash-Zibanejad-Buchnevich line produced seven points. “We’re feeling each other out,” Nash said. “You play with so many different combinations, it’s tough to find chemistry, but I think [coach Alain Vigneault] did an awesome job putting us three together.”

Mats Zuccarello took a hooking penalty with 39 seconds left, but Henrik Lundqvist (34 saves) made a huge glove stop on a screened shot from defenseman Rasmus Ristolainen with five seconds left to preserve the win.

“All I saw was when it left his stick, I had to [make a] read,” Lundqvist said. “[Buffalo] stayed alive and moved the puck well on the power play. It kept them in the game.” The Sabres scored twice on the power play.

Asked what he saw from the Zibanejad line, Lundqvist said: “Confidence. They move the puck really well and the timing is there right now. Also, when they get the opportunity, they take advantage. A lot of that is confidence.”

Nash in particular is on a roll.

He was near the right post when Sabres goalie Robin Lehner (30 saves) stopped a deflection but couldn’t control the rebound. Nash scooped up the puck and tucked it behind Lehner for his 13th goal and a 3-2 lead at 6:49 of the third.

With 6:17 left, Brendan Smith was called for a delay-of-game penalty. Lundqvist fought through a screen for one save, but Ristolainen scored with 5:01 to play for Buffalo’s second power-play goal and a 3-3 tie.

The Rangers opened the scoring at 1:24 of the first period. Buchnevich poked the puck up ice and Nash sped past defenseman Jake McCabe for a breakaway. His rising wrister zipped over Lehner’s glove for a 1-0 lead.

At one point, the Rangers led 8-1 in shots, but the Sabres, coming off their bye week, eventually found their legs and started making plays. With Smith off for tripping, former Islander Kyle Okposo scored from in front to tie it at 18:41.

J.T. Miller’s 20-foot shot over Lehner’s glove midway through the second made it 2-1 Rangers, but the Sabres responded with a softie. Justin Falk’s wrister from the point went through Brady Skjei and under Lundqvist to tie it at 2 at 17:10.

The Rangers hadn’t won two in a row since a three-game streak from Dec. 15-19. “We had a good first period, they [responded] in the second,’’ Vigneault said, “but in the third, we played to win.”

More Rangers

YOU'VE BEEN SELECTED

FOR OUR BEST OFFER ONLY 25¢ for 5 months

Unlimited Digital Access.

cancel anytime.