UNIONDALE, N.Y. (AP) -- Jimmy Hayes' second goal of the game 2:10 into the third period lifted the slumping Florida Panthers to a 4-2 victory over the New York Islanders on Tuesday night.

New York Islanders center John Tavares (91) overtakes Florida Panthers center Derek MacKenzie (17) to gain possession of the puck in the second period of an NHL hockey game at Nassau Coliseum on Tuesday, Feb. 3, 2015, in Uniondale, N.Y. (AP Photo/Kathy Kmonicek)

Hayes put a rebound of Nick Bjugstad's shot past goalie Jaroslav Halak nine seconds into a power play for his 15th goal. Bjugstad also assisted on Hayes' first-period tying goal.

Erik Gudbranson also scored, Brandon Pirri added one into an empty net with 22 seconds left and Al Montoya made 32 saves for the Panthers, 2-6-1 in their past nine -- including losses at New Jersey and the New York Rangers in their previous two.

Anders Lee scored both goals for Metropolitan Division-leading New York, which has dropped three straight. Halak made 26 saves.

(Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)