NEW YORK -- Denis Malgin scored with 1:09 left in the third period to give the Florida Panthers a 5-4 win against the New York Rangers at Madison Square Garden on Tuesday.
New York had won four in a row and eight straight at home.
Malgin was recalled from Springfield of the American Hockey League on Monday because of an upper-body injury to forward Evgenii Dadonov. Malgin took a pass from Mark Pysyk at the left circle and beat Ondrej Pavelec for his first goal of the season.
[WATCH: All Panthers vs. Rangers highlights]
"I just came on the ice and saw Pysyk get the puck," Malgin said. "I got into my one-timer position, he passed it to me and the puck went in. It was a tough game. It was hard. It was fast. Sometimes you have to stick with it until the end and you win the game."
Jonathan Huberdeau had a goal and two assists for the Panthers (10-12-2), who have won three of their past four games. Aleksander Barkov, Jamie McGinn and Micheal Haley scored, and Keith Yandle had two assists.
"It's a huge win for us," Huberdeau said. "A good two points and it's a good road trip. It's not easy to play at MSG."
Rangers goalie Henrik Lundqvist made his 13th consecutive start but was pulled after allowing three first-period goals on six shots.
Video: FLA@NYR: Haley sneaks shot through screen
Chris Kreider scored twice and had an assist for the Rangers (13-10-2), who tied the game 4-4 with Kreider's goal at 13:28 of the third period after trailing 3-0 and 4-1. J.T. Miller and Pavel Buchnevich scored, and Pavelec made 19 saves in relief of Lundqvist.
"We have to come away with a point there, at least," Kreider said. "Look around the League, pretty much every team, especially teams in our division (Metropolitan), they're coming away with a point. We have to find a way. We'll look at the tape and figure out what we can do better."
Barkov made it 1-0 at 5:50 of the first period. Huberdeau's shot from the point deflected off the skate of Rangers defenseman Brendan Smith and Barkov's knee before going over Lundqvist's right shoulder.
McGinn made it 2-0 at 9:35. Nick Holden couldn't control a rolling puck, Nick Bjugstad got it and passed to McGinn, who scored with a wrist shot.
Video: FLA@NYR: McGinn pots wrister up high after turnover
Haley scored his first of the season shortly after Panthers goalie James Reimer made a point-blank glove save on Buchnevich. Florida went the other way and Haley finished the rush at 16:47 to make it 3-0.
Reimer made 32 saves for his first win since defeating the Anaheim Ducks 8-3 on Oct. 26.
"A great character win for us," he said. "You stay ready in practice. You practice hard and you try and be in as good a game shape as possible. Whatever comes your way, 10 shots, 40 shots, you're ready to go."
Goal of the game
Malgin's goal at 18:51 of the third period.
Video: FLA@NYR: Malgin puts Panthers ahead late in the 3rd
Save of the game
Reimer's save against Buchnevich at 16:36 of the first period.
Video: FLA@NYR: Reimer robs Buchnevich with glove save
Highlight of the game
Kreider's goal at 11:16 of the second period.
Video: FLA@NYR: Kreider buries one after passing clinic
They said it
"After the game, I told the guys we've played lots of games this year where we dominated a team and we should have had a point, if not two. Tonight, we found a way against a team that probably dominated us for the most part. It's a nice feeling to find ways to win games." -- Panthers coach Bob Boughner
"This has to be a huge lesson for us tonight. Not only a better start again, more so when you come back in a game at home, a minute left, those are games you have to take at least one point from. This is a really tough one to swallow after coming back." -- Rangers forward Rick Nash
Need to know
Rangers center Mika Zibanejad (upper body) was scratched after warmups. Coach Alain Vigneault said he'd know more about the injury Wednesday. David Desharnais had three assists in Zibanejad's place on a line with Kreider and Buchnevich; they had nine points (three goals, six assists). … Six of the past seven games between the Panthers and Rangers have been decided by one goal … … Kreider is one goal from 100 and two points from 200 in his NHL career. … Rangers center Boo Nieves (hip) returned after missing one game.
Panthers: Host the San Jose Sharks on Friday (7:30 p.m. ET; FS-F, NBCSCA, NHL.TV)
Rangers: Host the Carolina Hurricanes on Friday (7 p.m. ET; MSG, FS-CR, NHL.TV)
Video: Panthers top Rangers on Malgin's late goal